Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
c845d11f
Commit
c845d11f
authored
May 31, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure chat-info msgs are not auto-removed
parent
18fc9035
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
converse.css
converse.css
+2
-2
converse.js
converse.js
+18
-18
No files found.
converse.css
View file @
c845d11f
...
...
@@ -194,11 +194,11 @@ ul.participant-list li.moderator {
display
:
inline-block
;
}
.chat-event
,
.chat-date
,
.chat-
help
{
.chat-event
,
.chat-date
,
.chat-
info
{
color
:
#808080
;
}
li
.chat-
help
{
li
.chat-
info
{
padding-left
:
10px
;
}
...
...
converse.js
View file @
c845d11f
...
...
@@ -368,7 +368,7 @@
var
$chat_content
=
this
.
$el
.
find
(
'
.chat-content
'
),
i
,
msgs_length
=
msgs
.
length
;
for
(
i
=
0
;
i
<
msgs_length
;
i
++
)
{
$chat_content
.
append
(
$
(
'
<div class="chat-
help
">
'
+
msgs
[
i
]
+
'
</div>
'
));
$chat_content
.
append
(
$
(
'
<div class="chat-
info
">
'
+
msgs
[
i
]
+
'
</div>
'
));
}
this
.
scrollDown
();
},
...
...
@@ -499,20 +499,20 @@
},
template
:
_
.
template
(
'
<div class="chat-head chat-head-chatbox">
'
+
'
<a class="close-chatbox-button">X</a>
'
+
'
<a href="{{url}}" target="_blank" class="user">
'
+
'
<div class="chat-title"> {{ fullname }} </div>
'
+
'
</a>
'
+
'
<p class="user-custom-message"><p/>
'
+
'
</div>
'
+
'
<div class="chat-content"></div>
'
+
'
<form class="sendXMPPMessage" action="" method="post">
'
+
'
<textarea
'
+
'
type="text"
'
+
'
class="chat-textarea"
'
+
'
placeholder="Personal message"/>
'
+
'
</form>
'
),
'
<div class="chat-head chat-head-chatbox">
'
+
'
<a class="close-chatbox-button">X</a>
'
+
'
<a href="{{url}}" target="_blank" class="user">
'
+
'
<div class="chat-title"> {{ fullname }} </div>
'
+
'
</a>
'
+
'
<p class="user-custom-message"><p/>
'
+
'
</div>
'
+
'
<div class="chat-content"></div>
'
+
'
<form class="sendXMPPMessage" action="" method="post">
'
+
'
<textarea
'
+
'
type="text"
'
+
'
class="chat-textarea"
'
+
'
placeholder="Personal message"/>
'
+
'
</form>
'
),
render
:
function
()
{
this
.
$el
.
attr
(
'
id
'
,
this
.
model
.
get
(
'
box_id
'
))
...
...
@@ -645,9 +645,9 @@
$
.
getJSON
(
portal_url
+
"
/search-users?q=
"
+
$
(
ev
.
target
).
find
(
'
input.username
'
).
val
(),
function
(
data
)
{
var
$ul
=
$
(
'
.search-xmpp ul
'
);
$ul
.
find
(
'
li.found-user
'
).
remove
();
$ul
.
find
(
'
li.chat-
help
'
).
remove
();
$ul
.
find
(
'
li.chat-
info
'
).
remove
();
if
(
!
data
.
length
)
{
$ul
.
append
(
'
<li class="chat-
help
">No users found</li>
'
);
$ul
.
append
(
'
<li class="chat-
info
">No users found</li>
'
);
}
$
(
data
).
each
(
function
(
idx
,
obj
)
{
...
...
@@ -1038,7 +1038,7 @@
'
click a.configure-chatroom-button
'
:
'
configureChatRoom
'
,
'
keypress textarea.chat-textarea
'
:
'
keyPressed
'
},
info_template
:
_
.
template
(
'
<div class="chat-
event
">{{message}}</div>
'
),
info_template
:
_
.
template
(
'
<div class="chat-
info
">{{message}}</div>
'
),
sendChatRoomMessage
:
function
(
body
)
{
var
match
=
body
.
replace
(
/^
\s
*/
,
""
).
match
(
/^
\/(
.*
?)(?:
(
.*
))?
$/
)
||
[
false
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment