UI tweaks 🩹

This commit is contained in:
Jokob-sk
2024-03-16 11:54:37 +11:00
parent 1fa49a7730
commit dd4de7c5a3
3 changed files with 18 additions and 1 deletions

View File

@@ -724,6 +724,9 @@
console.log(myHierarchy)
myTree.refresh(myHierarchy);
// hide spinning icon
hideSpinner()
}
// ---------------------------------------------------------------------------
@@ -840,6 +843,8 @@
}
}
// show spinning icon
showSpinner()
// init device names where macs are used
initDeviceNamesFromMACs();

View File

@@ -246,6 +246,9 @@ function getData(){
generateTabs()
// hide spinning icon
hideSpinner()
});
});
});
@@ -580,6 +583,8 @@ function purgeVisible() {
// -----------------------------------------------------------------------------
// Main sequence
// show spinning icon
showSpinner()
getData()
updater()

View File

@@ -589,14 +589,21 @@ echo '<br>';
<!-- DataTable initialization -->
<script>
// show spinning icon
showSpinner()
setTimeout(() => {
$('#networkTable').DataTable({
"searching": true,
"order": [[0, "desc"]]
});
// hide spinning icon
hideSpinner()
}, 20);
}, 500);
</script>