diff options
-rw-r--r-- | js/util.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js index deefc5844..2b772fcac 100644 --- a/js/util.js +++ b/js/util.js @@ -35,7 +35,11 @@ $(document).ready(function(){ function submitonreturn(event) { if (event.keyCode == 13) { $("#status_form").submit(); + event.preventDefault(); + event.stopPropagation(); + return false; } + return true; } if ($("#status_textarea").length) { |