]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Compare by type
authorSarven Capadisli <csarven@status.net>
Thu, 31 Dec 2009 16:25:51 +0000 (16:25 +0000)
committerSarven Capadisli <csarven@status.net>
Thu, 31 Dec 2009 16:25:51 +0000 (16:25 +0000)
js/util.js

index 7005d3125ec0d0ed96a2b9e79b140bbd00c3c623..a02a30a1254458771329e4e866bd94dfd2fa9f57 100644 (file)
@@ -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("");