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() {
NLN.remove();
}
- var S = '<div id="'+SN.C.S.NoticeDataGeoSelected+'" class="'+SN.C.S.Success+'"/div>';
+ var S = '<div id="'+SN.C.S.NoticeDataGeoSelected+'" class="'+SN.C.S.Success+'"/>';
NDGS = $('#'+SN.C.S.NoticeDataGeoSelected);
if (NDGS.length > 0) {
NDGS.replaceWith(S);
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">_</button> <button class="close">×</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;
});
NLN.attr('href', location.url);
NLN.text(NLN_text);
+ NLN.click(function() {
+ window.open(location.url);
+
+ return false;
+ });
});
});
}
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('');