]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - js/util.js
Making us less dependant on javascript trust
[quix0rs-gnu-social.git] / js / util.js
index ae9a67dbb36dad6d8a10130c6b775374882565ed..5f95595edd134ec5c646ee151b7e9c536709447c 100644 (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();
@@ -1331,7 +1331,7 @@ var SN = { // StatusNet
              */
             Get: function () {
                 var cookieValue = $.cookie(SN.C.S.StatusNetInstance);
-                if (cookieValue !== null) {
+                if (cookieValue !== undefined) {
                     return JSON.parse(cookieValue);
                 }
                 return null;
@@ -1414,6 +1414,8 @@ var SN = { // StatusNet
                     SN.Init.NoticeFormSetup(form);
                 })
                 .find('.notice_data-text').focus();
+
+        return false;
     },
 
         showMoreMenuItems: function (menuid) {