From febe64625e1f5f771715a024e267db42d11a5d5e Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Fri, 8 Jan 2010 16:51:18 +0000 Subject: Focus on the notice textarea after share, minimize, close button actions --- js/util.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js') diff --git a/js/util.js b/js/util.js index 98718e73f..4e588a3b6 100644 --- a/js/util.js +++ b/js/util.js @@ -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(); } }, -- cgit v1.2.3-54-g00ecf