]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Focus on the notice textarea after share, minimize, close button actions
authorSarven Capadisli <csarven@status.net>
Fri, 8 Jan 2010 16:51:18 +0000 (16:51 +0000)
committerSarven Capadisli <csarven@status.net>
Fri, 8 Jan 2010 16:51:18 +0000 (16:51 +0000)
js/util.js

index 98718e73f19cf2415a42bfb7bd6568e7aa5bd61a..4e588a3b63be4fec58ac801baddaa33834880cdc 100644 (file)
@@ -589,6 +589,8 @@ var SN = { // StatusNet
 
                             $('#'+SN.C.S.NoticeDataGeoSelected).remove();
 
+                            $('#'+SN.C.S.NoticeDataText).focus();
+
                             return false;
                         });
 
@@ -607,6 +609,8 @@ var SN = { // StatusNet
                             };
                             $.cookie(SN.C.S.NoticeDataGeoCookie, JSON.stringify(cookieValue));
 
+                            $('#'+SN.C.S.NoticeDataText).focus();
+
                             return false;
                         });
 
@@ -679,6 +683,8 @@ var SN = { // StatusNet
                     else {
                         removeNoticeDataGeo();
                     }
+
+                    $('#'+SN.C.S.NoticeDataText).focus();
                 }).change();
             }
         },