Reuse cookie location_enabled before .change()
This commit is contained in:
parent
48289e607b
commit
a08e683ac3
|
@ -503,6 +503,9 @@ var SN = { // StatusNet
|
||||||
|
|
||||||
var NDG = $('#'+SN.C.S.NoticeDataGeo);
|
var NDG = $('#'+SN.C.S.NoticeDataGeo);
|
||||||
if (NDG.length > 0) {
|
if (NDG.length > 0) {
|
||||||
|
var cookieVal = $.cookie(SN.C.S.NoticeLocationCookieName);
|
||||||
|
NDG.attr('checked', (cookieVal === null || cookieVal == 'true'));
|
||||||
|
|
||||||
var NLE = $('#notice_data-location_wrap');
|
var NLE = $('#notice_data-location_wrap');
|
||||||
var geocodeURL = NLE.attr('title');
|
var geocodeURL = NLE.attr('title');
|
||||||
NLE.removeAttr('title');
|
NLE.removeAttr('title');
|
||||||
|
@ -593,9 +596,6 @@ var SN = { // StatusNet
|
||||||
removeNoticeDataGeo();
|
removeNoticeDataGeo();
|
||||||
}
|
}
|
||||||
}).change();
|
}).change();
|
||||||
|
|
||||||
var cookieVal = $.cookie(SN.C.S.NoticeLocationCookieName);
|
|
||||||
NDG.attr('checked', (cookieVal === null || cookieVal == 'true'));
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user