forked from GNUsocial/gnu-social
JSLinting on JSON
This commit is contained in:
parent
6494cb17e9
commit
8896df22af
20
js/util.js
20
js/util.js
@ -525,13 +525,13 @@ var SN = { // StatusNet
|
|||||||
$('#'+SN.C.S.NoticeDataGeo).attr('checked', true);
|
$('#'+SN.C.S.NoticeDataGeo).attr('checked', true);
|
||||||
|
|
||||||
var cookieValue = {
|
var cookieValue = {
|
||||||
'NLat': data.lat,
|
NLat: data.lat,
|
||||||
'NLon': data.lon,
|
NLon: data.lon,
|
||||||
'NLNS': lns,
|
NLNS: lns,
|
||||||
'NLID': lid,
|
NLID: lid,
|
||||||
'NLN': NLN_text,
|
NLN: NLN_text,
|
||||||
'NLNU': location.url,
|
NLNU: location.url,
|
||||||
'NDG': true
|
NDG: true
|
||||||
};
|
};
|
||||||
$.cookie(SN.C.S.NoticeDataGeoCookie, JSON.stringify(cookieValue));
|
$.cookie(SN.C.S.NoticeDataGeoCookie, JSON.stringify(cookieValue));
|
||||||
});
|
});
|
||||||
@ -566,9 +566,9 @@ var SN = { // StatusNet
|
|||||||
$('#'+SN.C.S.NoticeLon).val(position.coords.longitude);
|
$('#'+SN.C.S.NoticeLon).val(position.coords.longitude);
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
'lat': position.coords.latitude,
|
lat: position.coords.latitude,
|
||||||
'lon': position.coords.longitude,
|
lon: position.coords.longitude,
|
||||||
'token': $('#token').val()
|
token: $('#token').val()
|
||||||
};
|
};
|
||||||
|
|
||||||
getJSONgeocodeURL(geocodeURL, data);
|
getJSONgeocodeURL(geocodeURL, data);
|
||||||
|
Loading…
Reference in New Issue
Block a user