Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
murrant committed Nov 6, 2024
1 parent 458908d commit 02e2710
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions resources/views/map/device-dependency.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function updateHighlight(hlcb) {
refreshMap();
}
function async refreshMap() {
async function refreshMap() {
var highlight = $("#highlight_node").val();
var showpath = 0;
if ($("#showparentdevicepath")[0].checked) {
Expand All @@ -85,9 +85,6 @@ function async refreshMap() {
} else if (device_count > 500) {
$("#alert").text("The initial render will be slow due to the number of devices. Auto refresh has been paused.");
$("#alert-row").show();
} else {
$("#alert").text("");
$("#alert-row").hide();
}
function deviceSort(a,b) {
Expand Down Expand Up @@ -165,6 +162,8 @@ function deviceSort(a,b) {
Countdown.Pause();
await refreshMap();
Countdown.Resume();
$("#alert").text("");
$("#alert-row").hide();
});
</script>
<x-refresh-timer :refresh="$page_refresh" callback="refreshMap"></x-refresh-timer>
Expand Down

0 comments on commit 02e2710

Please sign in to comment.