forked from GNUsocial/gnu-social
Moving notice_data-location_wrap after notice form fieldset
This commit is contained in:
parent
dde6415a6a
commit
9496f2735e
10
js/util.js
10
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user