Skip to content

Commit

Permalink
prevent empty msg
Browse files Browse the repository at this point in the history
  • Loading branch information
x3388638 committed Mar 28, 2017
1 parent 8e5946d commit af23570
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ var App = (_ => {
return;
}
var msg = $inputMsg.val().trim();
if(msg == '') {
return;
}
$inputMsg.val('');
$.ajax({
url: `${_APITarget}/message`,
Expand Down

0 comments on commit af23570

Please sign in to comment.