]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
JSLinting on JSON
authorSarven Capadisli <csarven@status.net>
Sat, 16 Jan 2010 19:44:37 +0000 (19:44 +0000)
committerSarven Capadisli <csarven@status.net>
Mon, 25 Jan 2010 23:24:44 +0000 (00:24 +0100)
js/util.js

index 88016bd6d06c27c30848e88a12d3f55663562972..ef28f31e82872d1e96d4fde1827466f63ce41345 100644 (file)
@@ -525,13 +525,13 @@ var SN = { // StatusNet
                     $('#'+SN.C.S.NoticeDataGeo).attr('checked', true);
 
                     var cookieValue = {
-                        'NLat': data.lat,
-                        'NLon': data.lon,
-                        'NLNS': lns,
-                        'NLID': lid,
-                        'NLN': NLN_text,
-                        'NLNU': location.url,
-                        'NDG': true
+                        NLat: data.lat,
+                        NLon: data.lon,
+                        NLNS: lns,
+                        NLID: lid,
+                        NLN: NLN_text,
+                        NLNU: location.url,
+                        NDG: true
                     };
                     $.cookie(SN.C.S.NoticeDataGeoCookie, JSON.stringify(cookieValue));
                 });
@@ -566,9 +566,9 @@ var SN = { // StatusNet
                                         $('#'+SN.C.S.NoticeLon).val(position.coords.longitude);
 
                                         var data = {
-                                            'lat': position.coords.latitude,
-                                            'lon': position.coords.longitude,
-                                            'token': $('#token').val()
+                                            lat: position.coords.latitude,
+                                            lon: position.coords.longitude,
+                                            token: $('#token').val()
                                         };
 
                                         getJSONgeocodeURL(geocodeURL, data);