Changed the geo location cookie Expire to Session.
This commit is contained in:
parent
09705a1e98
commit
9f94d6defa
@ -53,7 +53,7 @@ var SN = { // StatusNet
|
|||||||
NoticeLocationNs: 'notice_data-location_ns',
|
NoticeLocationNs: 'notice_data-location_ns',
|
||||||
NoticeGeoName: 'notice_data-geo_name',
|
NoticeGeoName: 'notice_data-geo_name',
|
||||||
NoticeDataGeo: 'notice_data-geo',
|
NoticeDataGeo: 'notice_data-geo',
|
||||||
NoticeDataGeoCookie: 'notice_data-geo_cookie',
|
NoticeDataGeoCookie: 'NoticeDataGeo',
|
||||||
NoticeDataGeoSelected: 'notice_data-geo_selected',
|
NoticeDataGeoSelected: 'notice_data-geo_selected',
|
||||||
StatusNetInstance:'StatusNetInstance'
|
StatusNetInstance:'StatusNetInstance'
|
||||||
}
|
}
|
||||||
@ -494,7 +494,7 @@ var SN = { // StatusNet
|
|||||||
$('#'+SN.C.S.NoticeLocationId).val('');
|
$('#'+SN.C.S.NoticeLocationId).val('');
|
||||||
$('#'+SN.C.S.NoticeDataGeo).attr('checked', false);
|
$('#'+SN.C.S.NoticeDataGeo).attr('checked', false);
|
||||||
|
|
||||||
$.cookie(SN.C.S.NoticeDataGeoCookie, 'disabled', { path: '/', expires: SN.U.GetFullYear(2029, 0, 1) });
|
$.cookie(SN.C.S.NoticeDataGeoCookie, 'disabled', { path: '/' });
|
||||||
}
|
}
|
||||||
|
|
||||||
function getJSONgeocodeURL(geocodeURL, data) {
|
function getJSONgeocodeURL(geocodeURL, data) {
|
||||||
@ -537,7 +537,7 @@ var SN = { // StatusNet
|
|||||||
NDG: true
|
NDG: true
|
||||||
};
|
};
|
||||||
|
|
||||||
$.cookie(SN.C.S.NoticeDataGeoCookie, JSON.stringify(cookieValue), { path: '/', expires: SN.U.GetFullYear(2029, 0, 1) });
|
$.cookie(SN.C.S.NoticeDataGeoCookie, JSON.stringify(cookieValue), { path: '/' });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user