]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If user checked shared location but didn't enter their location, don't
authorSarven Capadisli <csarven@status.net>
Tue, 5 Jan 2010 00:15:26 +0000 (00:15 +0000)
committerSarven Capadisli <csarven@status.net>
Tue, 5 Jan 2010 00:15:26 +0000 (00:15 +0000)
show the checkbox

js/util.js

index 0334a41abb8ad9c056e6d9ab8553e07ecb664378..feea13b52c56b6b64f754623a1fcf3b091501924 100644 (file)
@@ -565,11 +565,13 @@ var SN = { // StatusNet
 
                                 getJSONgeocodeURL(geocodeURL, data);
                             }
+                            else {
+                                removeNoticeDataGeo();
+                                $('label[for='+SN.C.S.NoticeDataGeo+']').remove();
+                            }
                         }
                     }
                     else {
-                        $('label[for='+SN.C.S.NoticeDataGeo+']').removeClass('checked');
-
                         removeNoticeDataGeo();
                     }
                 }).change();