stop default handling of return in browser

darcs-hash:20080905050356-84dde-6e8b359848ff43b97097cc96943d829a8c9d3f5c.gz
This commit is contained in:
Evan Prodromou 2008-09-05 01:03:56 -04:00
parent e29c2b2938
commit 2cc634e266
1 changed files with 4 additions and 0 deletions

View 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) {