diff --git a/dashboard/production.php b/dashboard/production.php index fe72367..bee773a 100644 --- a/dashboard/production.php +++ b/dashboard/production.php @@ -1376,7 +1376,12 @@ if ($result = $conn->query($query)) { } + var BlockNextAlert = false; function AlertStart() { + if (BlockNextAlert) { + BlockNextAlert = false; + return; + } var btnid = ''; var headerText = ''; var CreateAlert = false; @@ -1487,6 +1492,7 @@ if ($result = $conn->query($query)) { SendUpdateProductionParameter(CurrentProductionId, CurrentCategory, dataArray).then(result => { if (result == "ok" || result == "reload - ok") { if (!silent) { + BlockNextAlert = true; openDetails(CurrentProductionId, CurrentCategory); Loading(false); if (result == "reload - ok" && !silent) {