summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-12-31 18:27:05 +0000
committerSarven Capadisli <csarven@status.net>2009-12-31 18:27:05 +0000
commit9496f2735e6b510f15c2c3ce627d5e6d3a94745b (patch)
treeca1da7cf0650427fafb43a798d65205dc53b0247
parentdde6415a6a91eb6670a80279a344ab6cc56ef17d (diff)
Moving notice_data-location_wrap after notice form fieldset
-rw-r--r--js/util.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/util.js b/js/util.js
index 41b3fdb25..0969ba5e2 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();
}
}