From 826f676a7783f7a11907dd6191b335f1feff4348 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Tue, 16 Aug 2022 10:49:53 +0300 Subject: [PATCH] v6.1.4.0 Change log: https://roxy-wi.org/changelog.py#6_1_4 --- inc/overview.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/inc/overview.js b/inc/overview.js index d23c36ed..f91e3c88 100644 --- a/inc/overview.js +++ b/inc/overview.js @@ -141,7 +141,11 @@ function ajaxActionServers(action, id) { if (data.indexOf('error:') != '-1') { toastr.error(data); } else if (cur_url[0] == "hapservers.py") { - location.reload() + if (data.indexOf('warning: ') != '-1') { + toastr.warning(data) + } else { + location.reload() + } } else { setTimeout(showOverview(ip, hostnamea), 2000); } @@ -231,7 +235,11 @@ function ajaxActionApacheServers(action, id) { if (data.indexOf('error:') != '-1') { toastr.error(data); } else if (cur_url[0] == "hapservers.py") { - location.reload() + if (data.indexOf('warning: ') != '-1') { + toastr.warning(data) + } else { + location.reload() + } } else { setTimeout(showOverview(ip, hostnamea), 2000) }