summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-01-05 00:15:26 +0000
committerSarven Capadisli <csarven@status.net>2010-01-05 00:15:26 +0000
commit9fadfd850e3713e15ea9bf1a097aef4a42b2c1f7 (patch)
tree1729490923ff8ad5dec0ec754924878043e7f1c6
parentd59ffeaab53ebf80b031e2810feaad58aff3288f (diff)
If user checked shared location but didn't enter their location, don't
show the checkbox
-rw-r--r--js/util.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/util.js b/js/util.js
index 0334a41ab..feea13b52 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();