From b48cd3ff73bd04853ed4eabe69162585ff0ddbbb Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 30 Jan 2023 10:48:10 +0100 Subject: [PATCH] #10153 refresh visual console maintenanceMode --- .../include/javascript/pandora_visual_console.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/javascript/pandora_visual_console.js b/pandora_console/include/javascript/pandora_visual_console.js index 6e0346aac7..0cdbbb4cfc 100755 --- a/pandora_console/include/javascript/pandora_visual_console.js +++ b/pandora_console/include/javascript/pandora_visual_console.js @@ -117,10 +117,12 @@ function createVisualConsole( visualConsole.updateElements(items); } - if (visualConsole.props.maintenanceMode != null) { - visualConsole.enableMaintenanceMode(); - } else { - visualConsole.disableMaintenanceMode(); + if (window.location.pathname.indexOf("index.php") == 0) { + if (visualConsole.props.maintenanceMode != null) { + visualConsole.enableMaintenanceMode(); + } else { + visualConsole.disableMaintenanceMode(); + } } // Emit the VC update event.