From 2b6090d8c67efc147e4472871a31a824767030df Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Fri, 28 Aug 2020 07:58:42 -0500 Subject: [PATCH] console.js - change all createPopup to window.location.assign --- web/skins/classic/views/js/console.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/skins/classic/views/js/console.js b/web/skins/classic/views/js/console.js index 10b78dce2..4b804a437 100644 --- a/web/skins/classic/views/js/console.js +++ b/web/skins/classic/views/js/console.js @@ -53,7 +53,7 @@ function setButtonStates( element ) { } function addMonitor(element) { - createPopup( '?view=monitor', 'zmMonitor0', 'monitor' ); + window.location.assign('?view=monitor'); } function cloneMonitor(element) { @@ -73,7 +73,7 @@ function cloneMonitor(element) { } } // end foreach element if ( monitorId != -1 ) { - createPopup( '?view=monitor&dupId='+monitorId, 'zmMonitor0', 'monitor' ); + window.location.assign('?view=monitor&dupId='+monitorId); } } @@ -97,11 +97,11 @@ function editMonitor( element ) { } } // end foreach checkboxes if ( monitorIds.length == 1 ) { - createPopup( '?view=monitor&mid='+monitorIds[0], 'zmMonitor'+monitorIds[0], 'monitor' ); + window.location.assign('?view=monitor&mid='+monitorIds[0]); } else if ( monitorIds.length > 1 ) { - createPopup( '?view=monitors&'+(monitorIds.map(function(mid) { + window.location.assign( '?view=monitors&'+(monitorIds.map(function(mid) { return 'mids[]='+mid; - }).join('&')), 'zmMonitors', 'monitors' ); + }).join('&'))); } } @@ -147,7 +147,7 @@ function initPage() { reloadWindow.periodical(consoleRefreshTimeout); if ( showVersionPopup ) { - createPopup('?view=version', 'zmVersion', 'version'); + window.location.assign('?view=version'); } if ( showDonatePopup ) { $j('#donate').modal('show');