AFAIK this should fix ticket #2145, at least removing the cookie by
hand updates location. If setting it to last only the session isn't
OK, the expiry value should be at least be a lot sooner IMO, since
people tend to move around a bit in 19 years :)
---
 js/util.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/js/util.js b/js/util.js
index b864867..d681264 100644
--- a/js/util.js
+++ b/js/util.js
@@ -495,7 +495,7 @@ var SN = { // StatusNet
                 $('#'+SN.C.S.NoticeLocationId).val('');
                 $('#'+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) {
@@ -538,7 +538,7 @@ var SN = { // StatusNet
                         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: '/' });
                 });
             }
 
-- 
1.5.5.6

_______________________________________________
StatusNet-dev mailing list
[email protected]
http://lists.status.net/mailman/listinfo/statusnet-dev

Reply via email to