bugfixes, new options in settings panel

This commit is contained in:
NoobishSVK
2024-03-03 19:30:34 +01:00
parent d90c8ed479
commit 36647b79b5
9 changed files with 228 additions and 125 deletions
+1 -13
View File
@@ -8,12 +8,6 @@ var mapAttrib='&copy; <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();
}
});