]> 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>
Sat, 23 Jan 2010 23:18:39 +0000 (00:18 +0100)
js/util.js

index a749c5d9f499256d9d37a0144dad74b6e33945e5..2d19b8df25d4b4dd129735e60d01115e4e772d5b 100644 (file)
@@ -529,13 +529,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));
                 });
@@ -570,9 +570,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);