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
c25c8eab
Commit
c25c8eab
authored
Jan 15, 2018
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
2c049a53
9b3c6d1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
spec/chatbox.js
spec/chatbox.js
+9
-0
src/converse-chatview.js
src/converse-chatview.js
+1
-0
src/templates/help_message.html
src/templates/help_message.html
+1
-1
No files found.
spec/chatbox.js
View file @
c25c8eab
...
@@ -39,6 +39,15 @@
...
@@ -39,6 +39,15 @@
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/help: Show this menu
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/help: Show this menu
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/me: Write in the third person
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/me: Write in the third person
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/clear: Remove messages
'
);
expect
(
info_messages
.
pop
().
textContent
).
toBe
(
'
/clear: Remove messages
'
);
var
msg
=
$msg
({
from
:
contact_jid
,
to
:
_converse
.
connection
.
jid
,
type
:
'
chat
'
,
id
:
(
new
Date
()).
getTime
()
}).
c
(
'
body
'
).
t
(
'
hello world
'
).
tree
();
_converse
.
chatboxes
.
onMessage
(
msg
);
expect
(
view
.
content
.
lastElementChild
.
textContent
.
trim
().
indexOf
(
'
hello world
'
)).
not
.
toBe
(
-
1
);
done
();
done
();
}));
}));
...
...
src/converse-chatview.js
View file @
c25c8eab
...
@@ -580,6 +580,7 @@
...
@@ -580,6 +580,7 @@
this
.
content
.
insertAdjacentHTML
(
this
.
content
.
insertAdjacentHTML
(
'
beforeend
'
,
'
beforeend
'
,
tpl_help_message
({
tpl_help_message
({
'
isodate
'
:
moment
().
format
(),
'
type
'
:
type
||
'
info
'
,
'
type
'
:
type
||
'
info
'
,
'
message
'
:
xss
.
filterXSS
(
msg
,
{
'
whiteList
'
:
{
'
strong
'
:
[]}})
'
message
'
:
xss
.
filterXSS
(
msg
,
{
'
whiteList
'
:
{
'
strong
'
:
[]}})
})
})
...
...
src/templates/help_message.html
View file @
c25c8eab
<div
class=
"
chat-{{{o.typ
e}}}"
>
{{o.message}}
</div>
<div
class=
"
message chat-{{{o.type}}}"
data-isodate=
"{{{o.isodat
e}}}"
>
{{o.message}}
</div>
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