mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
bugfixes, new options in settings panel
This commit is contained in:
+1
-13
@@ -8,12 +8,6 @@ var mapAttrib='© <a href="http://www.openstreetmap.org/copyright">OpenStree
|
||||
$(document).ready(function() {
|
||||
MapCreate();
|
||||
fetchData();
|
||||
|
||||
setTimeout( function() {
|
||||
if ($('.nav li.active[data-panel="status"]').length > 0) {
|
||||
$('#submit-config').hide();
|
||||
}
|
||||
}, 50 )
|
||||
|
||||
map.on('click', function(ev) {
|
||||
$('#lat').val((ev.latlng.lat).toFixed(6));
|
||||
@@ -31,7 +25,7 @@ $(document).ready(function() {
|
||||
}
|
||||
});
|
||||
|
||||
$('#status').show();
|
||||
$('#dashboard').show();
|
||||
showPanelFromHash();
|
||||
$('.nav li').click(function() {
|
||||
// Remove background color from all li elements
|
||||
@@ -54,12 +48,6 @@ $(document).ready(function() {
|
||||
map.invalidateSize();
|
||||
}, 200);
|
||||
}
|
||||
|
||||
if(panelId == 'status') {
|
||||
$('#submit-config').hide();
|
||||
} else {
|
||||
$('#submit-config').show();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user