]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
stop default handling of return in browser
authorEvan Prodromou <evan@prodromou.name>
Fri, 5 Sep 2008 05:03:56 +0000 (01:03 -0400)
committerEvan Prodromou <evan@prodromou.name>
Fri, 5 Sep 2008 05:03:56 +0000 (01:03 -0400)
darcs-hash:20080905050356-84dde-6e8b359848ff43b97097cc96943d829a8c9d3f5c.gz

js/util.js

index deefc5844cde1d72291aac32c0c3927147810789..2b772fcac02a21e12d8efe026edfcaa1cf673696 100644 (file)
@@ -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) {