summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-01-04 09:14:14 +0000
committerSarven Capadisli <csarven@status.net>2010-01-04 09:14:14 +0000
commit9f9dcd2bf5e0343bb23b01fde65e61b83d80b702 (patch)
tree3c534315849e452b8d80a71701869d8d6b435df7 /js/util.js
parent50af9c5c401a7bebd1503df885172cf538a6ba79 (diff)
Using object value instead of inline string
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/util.js b/js/util.js
index 00f94e5c4..048d3f1eb 100644
--- a/js/util.js
+++ b/js/util.js
@@ -447,7 +447,7 @@ var SN = { // StatusNet
var NLE = $('#notice_data-location_wrap');
var geocodeURL = NLE.attr('title');
- $('label[for=notice_data-geo]').attr('title', NLE.text());
+ $('label[for='+SN.C.S.NoticeDataGeo+']').attr('title', NLE.text());
if (navigator.geolocation) {
NDG.change(function() {
@@ -475,14 +475,14 @@ var SN = { // StatusNet
if ($('#'+SN.C.S.NoticeDataGeo).attr('checked') === true) {
NLN.addClass('processing');
- $('label[for=notice_data-geo]').addClass('checked');
+ $('label[for='+SN.C.S.NoticeDataGeo+']').addClass('checked');
NDGS.append('<button class="minimize">&#95;</button> <button class="close">&#215;</button>');
$('#'+SN.C.S.NoticeDataGeoSelected+' button.close').click(function(){
$('#'+SN.C.S.NoticeDataGeoSelected).remove();
$('#'+SN.C.S.NoticeDataGeo).attr('checked', false);
- $('label[for=notice_data-geo]').removeClass('checked');
+ $('label[for='+SN.C.S.NoticeDataGeo+']').removeClass('checked');
return false;
});
@@ -533,7 +533,7 @@ var SN = { // StatusNet
});
}
else {
- $('label[for=notice_data-geo]').removeClass('checked');
+ $('label[for='+SN.C.S.NoticeDataGeo+']').removeClass('checked');
NDGS.hide();
$('#'+SN.C.S.NoticeLat).val('');
$('#'+SN.C.S.NoticeLon).val('');