From 2cc634e266f77ed89605cbaf407c79c0e6034641 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 5 Sep 2008 01:03:56 -0400 Subject: stop default handling of return in browser darcs-hash:20080905050356-84dde-6e8b359848ff43b97097cc96943d829a8c9d3f5c.gz --- js/util.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js') 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) { -- cgit v1.2.3-54-g00ecf