Skip to content

Commit

Permalink
Fixes the extra-line bug when a message is posted
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Apr 13, 2012
1 parent 1ef504f commit 2d4d784
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/backbone/views/chatbox.js.coffee
Expand Up @@ -11,7 +11,9 @@ class Kandan.Views.Chatbox extends Backbone.View


postMessageOnEnter: (event)->
@postMessage(event) if event.keyCode== 13
if event.keyCode== 13
@postMessage(event)
event.preventDefault()


postMessage: (event)->
Expand Down

0 comments on commit 2d4d784

Please sign in to comment.