summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-02 16:55:47 +0000
committerSarven Capadisli <csarven@status.net>2009-11-02 16:55:47 +0000
commitc3cac436e2e5f142010a16a1271253bcda0ebb30 (patch)
tree3d17d8ef2871313cbb615a999257107b57b5c5b7
parenteeed7f54377d8a6bafacd0662c7907681b3ed0cf (diff)
Fixed object string name and order for submitonreturn actions
-rw-r--r--js/util.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/util.js b/js/util.js
index bd0d6b07b..6ce1084b7 100644
--- a/js/util.js
+++ b/js/util.js
@@ -97,11 +97,11 @@ var SN = { // StatusNet
SubmitOnReturn: function(event, el) {
if (event.keyCode == 13 || event.keyCode == 10) {
- $('#'+el[0].id+' #'+SN.C.S.NoticeDataText).blur();
- $('body').focus();
el.submit();
event.preventDefault();
event.stopPropagation();
+ $('#'+el[0].id+' #'+SN.C.S.NoticeDataText).blur();
+ $('body').focus();
return false;
}
return true;
@@ -213,7 +213,7 @@ var SN = { // StatusNet
}
else {
$('#'+form_id+' #'+SN.C.S.NoticeDataText).val('');
- SN.U.NoticeFormEnhancements($('#'+SN.C.S.FormNotice));
+ SN.U.FormNoticeEnhancements($('#'+SN.C.S.FormNotice));
}
}
}