summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-09-05 01:03:56 -0400
committerEvan Prodromou <evan@prodromou.name>2008-09-05 01:03:56 -0400
commit2cc634e266f77ed89605cbaf407c79c0e6034641 (patch)
treec380cf62332e82410ed9591270bc15918947c7ce /js/util.js
parente29c2b293808c4676c0677e59083b2a020ececfe (diff)
stop default handling of return in browser
darcs-hash:20080905050356-84dde-6e8b359848ff43b97097cc96943d829a8c9d3f5c.gz
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js4
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) {