$.cookie(SN.C.S.NoticeDataGeoCookie, 'disabled');
}
- function getJSONgeocodeURL(geocodeURL, data, position) {
+ function getJSONgeocodeURL(geocodeURL, data) {
$.getJSON(geocodeURL, data, function(location) {
var lns, lid;
}
if (typeof(location.name) == 'undefined') {
- NLN_text = position.coords.latitude + ';' + position.coords.longitude;
+ NLN_text = data.lat + ';' + data.lon;
}
else {
NLN_text = location.name;
token: $('#token').val()
};
- getJSONgeocodeURL(geocodeURL, data, position);
+ getJSONgeocodeURL(geocodeURL, data);
},
function(error) {
else {
if (NLat.length > 0 && NLon.length > 0) {
var data = {
- 'lat': NLat,
- 'lon': NLon,
- 'token': $('#token').val()
+ lat: NLat,
+ lon: NLon,
+ token: $('#token').val()
};
- getJSONgeocodeURL(geocodeURL, data, position);
+ getJSONgeocodeURL(geocodeURL, data);
}
else {
removeNoticeDataGeo();