forked from GNUsocial/gnu-social
stop default handling of return in browser
darcs-hash:20080905050356-84dde-6e8b359848ff43b97097cc96943d829a8c9d3f5c.gz
This commit is contained in:
parent
e29c2b2938
commit
2cc634e266
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user