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) console.log(myHierarchy)
myTree.refresh(myHierarchy); myTree.refresh(myHierarchy);
// hide spinning icon
hideSpinner()
} }
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
@@ -840,6 +843,8 @@
} }
} }
// show spinning icon
showSpinner()
// init device names where macs are used // init device names where macs are used
initDeviceNamesFromMACs(); initDeviceNamesFromMACs();

View File

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

View File

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