From: Sarven Capadisli Date: Tue, 5 Jan 2010 00:15:26 +0000 (+0000) Subject: If user checked shared location but didn't enter their location, don't X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9fadfd850e3713e15ea9bf1a097aef4a42b2c1f7;p=quix0rs-gnu-social.git If user checked shared location but didn't enter their location, don't show the checkbox --- diff --git a/js/util.js b/js/util.js index 0334a41abb..feea13b52c 100644 --- a/js/util.js +++ b/js/util.js @@ -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();