From: Evan Prodromou Date: Fri, 5 Sep 2008 05:03:56 +0000 (-0400) Subject: stop default handling of return in browser X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2cc634e266f77ed89605cbaf407c79c0e6034641;p=quix0rs-gnu-social.git stop default handling of return in browser darcs-hash:20080905050356-84dde-6e8b359848ff43b97097cc96943d829a8c9d3f5c.gz --- diff --git a/js/util.js b/js/util.js index deefc5844c..2b772fcac0 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) {