]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moving notice_data-location_wrap after notice form fieldset
authorSarven Capadisli <csarven@status.net>
Thu, 31 Dec 2009 18:27:05 +0000 (18:27 +0000)
committerSarven Capadisli <csarven@status.net>
Thu, 31 Dec 2009 18:27:05 +0000 (18:27 +0000)
js/util.js

index 41b3fdb25d9fb8c692b6819c2af61adf3d988faf..0969ba5e2ec9bcfecfdb916e4acdd85be3818a31 100644 (file)
@@ -439,10 +439,12 @@ var SN = { // StatusNet
 
         NoticeLocationAttach: function() {
             if ($('#notice_data-location_enabled').length > 0) {
-                if (navigator.geolocation) {
-                    var NLE = $('#notice_data-location_wrap');
-                    var geocodeURL = NLE.attr('title');
+                var NLE = $('#notice_data-location_wrap');
+                var geocodeURL = NLE.attr('title');
+
+                NLE.insertAfter('#'+SN.C.S.FormNotice+' fieldset');
 
+                if (navigator.geolocation) {
                     NLE.change(function() {
                         NLE.removeAttr('title');
 
@@ -504,7 +506,7 @@ var SN = { // StatusNet
                     });
 
                     var cookieVal = $.cookie(SN.C.S.NoticeLocationCookieName);
-                    $('#notice_data-location_enabled').attr('checked',(cookieVal == null || cookieVal == 'true'));
+                    $('#notice_data-location_enabled').attr('checked', (cookieVal == null || cookieVal == 'true'));
                     NLE.change();
                 }
             }