diff options
author | Sarven Capadisli <csarven@status.net> | 2009-12-31 16:25:51 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-12-31 16:25:51 +0000 |
commit | 58465d74bac0413b530f8a266c767da2c2f82648 (patch) | |
tree | 42de4cded0dfef841d9dbc45047223d942969a52 /js/util.js | |
parent | e06292c2a2715de5af29704eebeadc1e4b05b079 (diff) |
Compare by type
Diffstat (limited to 'js/util.js')
-rw-r--r-- | js/util.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/util.js b/js/util.js index 7005d3125..a02a30a12 100644 --- a/js/util.js +++ b/js/util.js @@ -442,7 +442,8 @@ var SN = { // StatusNet if (navigator.geolocation) { $('#notice_data-location_enabled').change(function() { $.cookie(SN.C.S.NoticeLocationCookieName, $('#notice_data-location_enabled').attr('checked')); - if($('#notice_data-location_enabled').attr('checked')) { + + if ($('#notice_data-location_enabled').attr('checked') === true) { $('#'+SN.C.S.NoticeLocationName).show(); $('#'+SN.C.S.NoticeLocationName).addClass('processing'); navigator.geolocation.getCurrentPosition(function(position) { @@ -461,7 +462,8 @@ var SN = { // StatusNet } }); }); - } else { + } + else { $('#'+SN.C.S.NoticeLocationName).hide(); $('#'+SN.C.S.NoticeLat).val(""); $('#'+SN.C.S.NoticeLon).val(""); |