summaryrefslogtreecommitdiff
path: root/src/static/js/chat.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/chat.js')
-rw-r--r--src/static/js/chat.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/static/js/chat.js b/src/static/js/chat.js
index 65fc8dd9..76444690 100644
--- a/src/static/js/chat.js
+++ b/src/static/js/chat.js
@@ -79,6 +79,10 @@ var chat = (function()
this._pad.collabClient.sendMessage({"type": "CHAT_MESSAGE", "text": text});
$("#chatinput").val("");
},
+ clearChatMessages: function()
+ {
+ $('#chattext p').remove();
+ },
addMessage: function(msg, increment, isHistoryAdd)
{
//correct the time