From 617440e1db3234874cf16b91206fe97a83a26d46 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Tue, 9 Feb 2021 15:31:26 +0530 Subject: [PATCH] Ensure that ajax request for Dashboard, Statistics, Dependencies, and Dependents should not be raised until the panel will be in focus. refs #5091 --- web/pgadmin/browser/static/js/panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/browser/static/js/panel.js b/web/pgadmin/browser/static/js/panel.js index da7cb2adb..bf9e874ce 100644 --- a/web/pgadmin/browser/static/js/panel.js +++ b/web/pgadmin/browser/static/js/panel.js @@ -200,9 +200,9 @@ define( if (eventName == 'panelClosed') { /* Pass the closed flag also */ - module.toggleVisibility.call(module, [false, true]); + module.toggleVisibility.call(module, false, true); } else if (eventName == 'panelVisibilityChanged') { - module.toggleVisibility.call(module, [pgBrowser.docker.findPanels(this._type)[0].isVisible()]); + module.toggleVisibility.call(module, pgBrowser.docker.findPanels(this._type)[0].isVisible(), false); } },