projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e29c2b2
)
stop default handling of return in browser
author
Evan Prodromou
<evan@prodromou.name>
Fri, 5 Sep 2008 05:03:56 +0000
(
01:03
-0400)
committer
Evan Prodromou
<evan@prodromou.name>
Fri, 5 Sep 2008 05:03:56 +0000
(
01:03
-0400)
darcs-hash:
20080905050356
-84dde-
6e8b359848ff43b97097cc96943d829a8c9d3f5c
.gz
js/util.js
patch
|
blob
|
history
diff --git
a/js/util.js
b/js/util.js
index deefc5844cde1d72291aac32c0c3927147810789..2b772fcac02a21e12d8efe026edfcaa1cf673696 100644
(file)
--- 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) {