Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Commit

Permalink
Fixed: wrong indents refs #160
Browse files Browse the repository at this point in the history
  • Loading branch information
mallowlabs committed Jan 8, 2014
1 parent 915cb88 commit 9377ced
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/assets/javascripts/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ $(function() {
$('form.inputarea').bind('submit', function(e){
var textcompleting = $(".dropdown-menu").is(":visible");
if (!textcompleting) {
if (connected) {
e.preventDefault();
jQuery.post(AsakusaSatellite.url.create, {
'room_id' : AsakusaSatellite.current.room,
'message' : $('textarea#message').val()
});
$('textarea#message').val('');
} else if (e.target == $('textarea#message').get(0)) {
this.submit();
}
if (connected) {
e.preventDefault();
jQuery.post(AsakusaSatellite.url.create, {
'room_id' : AsakusaSatellite.current.room,
'message' : $('textarea#message').val()
});
$('textarea#message').val('');
} else if (e.target == $('textarea#message').get(0)) {
this.submit();
}
}
});

Expand Down

0 comments on commit 9377ced

Please sign in to comment.