diff options
author | Sarven Capadisli <csarven@status.net> | 2010-01-05 01:31:34 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2010-01-05 01:31:34 +0000 |
commit | a08e683ac3bf07b19d704ac524a2e18804e908a7 (patch) | |
tree | f14077377ead8726533c491d965fd000e6698673 | |
parent | 48289e607bf207b40201075be8b599c0f3fa597e (diff) |
Reuse cookie location_enabled before .change()
-rw-r--r-- | js/util.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/util.js b/js/util.js index d84d21582..af6e0ff20 100644 --- a/js/util.js +++ b/js/util.js @@ -503,6 +503,9 @@ var SN = { // StatusNet var NDG = $('#'+SN.C.S.NoticeDataGeo); if (NDG.length > 0) { + var cookieVal = $.cookie(SN.C.S.NoticeLocationCookieName); + NDG.attr('checked', (cookieVal === null || cookieVal == 'true')); + var NLE = $('#notice_data-location_wrap'); var geocodeURL = NLE.attr('title'); NLE.removeAttr('title'); @@ -593,9 +596,6 @@ var SN = { // StatusNet removeNoticeDataGeo(); } }).change(); - - var cookieVal = $.cookie(SN.C.S.NoticeLocationCookieName); - NDG.attr('checked', (cookieVal === null || cookieVal == 'true')); } }, |