]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed object string name
authorSarven Capadisli <csarven@status.net>
Mon, 2 Nov 2009 16:42:50 +0000 (16:42 +0000)
committerSarven Capadisli <csarven@status.net>
Mon, 2 Nov 2009 16:42:50 +0000 (16:42 +0000)
js/util.js

index b572846b7c915cd859ea3a94eb78b05161929378..bd0d6b07ba099e90767f35909ba0188d9289b20b 100644 (file)
@@ -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.U.NoticeDataText).blur();
-                $('body').focus();
                 return false;
             }
             return true;