From: Sarven Capadisli Date: Thu, 31 Dec 2009 18:27:05 +0000 (+0000) Subject: Moving notice_data-location_wrap after notice form fieldset X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9496f2735e6b510f15c2c3ce627d5e6d3a94745b;p=quix0rs-gnu-social.git Moving notice_data-location_wrap after notice form fieldset --- diff --git a/js/util.js b/js/util.js index 41b3fdb25d..0969ba5e2e 100644 --- a/js/util.js +++ b/js/util.js @@ -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(); } }