diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-06 02:20:00 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-06 02:20:00 -0400 |
| commit | 3c3a30c3676c1abef87b8faaf7921f9a7244730d (patch) | |
| tree | 6641fef48f6fb688522359fcc5b91f880e161277 /public/js/lib/views/room/chat.js | |
| parent | 78f7f5ae58d9357e240873c137e8940e0647fbbd (diff) | |
relocating events
Diffstat (limited to 'public/js/lib/views/room/chat.js')
| -rw-r--r-- | public/js/lib/views/room/chat.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/public/js/lib/views/room/chat.js b/public/js/lib/views/room/chat.js index 222522f..0932e47 100644 --- a/public/js/lib/views/room/chat.js +++ b/public/js/lib/views/room/chat.js @@ -24,8 +24,8 @@ var ChatView = View.extend({ this.seen[key] = true var $el = $( this.template ) - $el.find(".nick").html(msg.nick) - $el.find(".msg").html(msg.msg) + $el.find(".nick").html(sanitize(msg.nick)) + $el.find(".msg").html(sanitizeHTML(msg.msg)) this.$messages.append($el) if (! this.scrolled) { this.scrollToBottom() @@ -34,7 +34,6 @@ var ChatView = View.extend({ send: function(e){ e && e.preventDefault() - console.log("hi") var val = this.$msg.sanitize() this.$msg.focus() if (! val) return |
