From 9496f2735e6b510f15c2c3ce627d5e6d3a94745b Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Thu, 31 Dec 2009 18:27:05 +0000 Subject: [PATCH] Moving notice_data-location_wrap after notice form fieldset --- js/util.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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(); } }