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
6618d694
Commit
6618d694
authored
Mar 16, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to override ChatBoxView with MUC-specific method
parent
2fa39f21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
src/converse-muc.js
src/converse-muc.js
+9
-13
No files found.
src/converse-muc.js
View file @
6618d694
...
...
@@ -126,19 +126,6 @@
}
},
ChatBoxView
:
{
clearChatRoomMessages
:
function
(
ev
)
{
/* New method added to the ChatBox model which allows all
* messages in a chatroom to be cleared.
*/
if
(
typeof
ev
!==
"
undefined
"
)
{
ev
.
stopPropagation
();
}
var
result
=
confirm
(
__
(
"
Are you sure you want to clear the messages from this room?
"
));
if
(
result
===
true
)
{
this
.
$content
.
empty
();
}
return
this
;
},
},
ChatBoxes
:
{
registerMessageHandler
:
function
()
{
...
...
@@ -422,6 +409,15 @@
return
true
;
},
clearChatRoomMessages
:
function
(
ev
)
{
if
(
typeof
ev
!==
"
undefined
"
)
{
ev
.
stopPropagation
();
}
var
result
=
confirm
(
__
(
"
Are you sure you want to clear the messages from this room?
"
));
if
(
result
===
true
)
{
this
.
$content
.
empty
();
}
return
this
;
},
onChatRoomMessageSubmitted
:
function
(
text
)
{
/* Gets called when the user presses enter to send off a
* message in a chat room.
...
...
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