From e31b9fd1bd301f8bfe11ecde4657bfa0f7edca1c Mon Sep 17 00:00:00 2001 From: mluto Date: Wed, 16 Jan 2013 18:48:25 +0100 Subject: [PATCH] IE8 does not have a string.trim()-function, so use regex.. --- src/static/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/chat.js b/src/static/js/chat.js index 4699d4444..205294a85 100644 --- a/src/static/js/chat.js +++ b/src/static/js/chat.js @@ -75,7 +75,7 @@ var chat = (function() send: function() { var text = $("#chatinput").val(); - if(text.trim().length == 0) + if(text.replace(/\s+/,'').length == 0) return; this._pad.collabClient.sendMessage({"type": "CHAT_MESSAGE", "text": text}); $("#chatinput").val("");