Fixed regression from jquery-cookie update

cookieValue was matched against null, not undefined.
This commit is contained in:
Mikael Nordfeldth 2013-09-14 13:38:50 +02:00
parent 360492472c
commit 11f43637b2
2 changed files with 2 additions and 2 deletions

View File

@ -546,7 +546,7 @@ var SN = { // StatusNet
var cookieValue = $.cookie(SN.C.S.NoticeDataGeoCookie);
if (cookieValue !== null && cookieValue != 'disabled') {
if (cookieValue !== undefined && cookieValue != 'disabled') {
cookieValue = JSON.parse(cookieValue);
SN.C.I.NoticeDataGeo.NLat = form.find('[name=lat]').val(cookieValue.NLat).val();
SN.C.I.NoticeDataGeo.NLon = form.find('[name=lon]').val(cookieValue.NLon).val();

2
js/util.min.js vendored

File diff suppressed because one or more lines are too long