Compare by type
This commit is contained in:
parent
e06292c2a2
commit
58465d74ba
@ -442,7 +442,8 @@ var SN = { // StatusNet
|
|||||||
if (navigator.geolocation) {
|
if (navigator.geolocation) {
|
||||||
$('#notice_data-location_enabled').change(function() {
|
$('#notice_data-location_enabled').change(function() {
|
||||||
$.cookie(SN.C.S.NoticeLocationCookieName, $('#notice_data-location_enabled').attr('checked'));
|
$.cookie(SN.C.S.NoticeLocationCookieName, $('#notice_data-location_enabled').attr('checked'));
|
||||||
if($('#notice_data-location_enabled').attr('checked')) {
|
|
||||||
|
if ($('#notice_data-location_enabled').attr('checked') === true) {
|
||||||
$('#'+SN.C.S.NoticeLocationName).show();
|
$('#'+SN.C.S.NoticeLocationName).show();
|
||||||
$('#'+SN.C.S.NoticeLocationName).addClass('processing');
|
$('#'+SN.C.S.NoticeLocationName).addClass('processing');
|
||||||
navigator.geolocation.getCurrentPosition(function(position) {
|
navigator.geolocation.getCurrentPosition(function(position) {
|
||||||
@ -461,7 +462,8 @@ var SN = { // StatusNet
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$('#'+SN.C.S.NoticeLocationName).hide();
|
$('#'+SN.C.S.NoticeLocationName).hide();
|
||||||
$('#'+SN.C.S.NoticeLat).val("");
|
$('#'+SN.C.S.NoticeLat).val("");
|
||||||
$('#'+SN.C.S.NoticeLon).val("");
|
$('#'+SN.C.S.NoticeLon).val("");
|
||||||
|
Loading…
Reference in New Issue
Block a user