Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/jstree_events.js')
-rw-r--r--assets/js/jstree_events.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/assets/js/jstree_events.js b/assets/js/jstree_events.js
index f8899208..dfb3e3ef 100644
--- a/assets/js/jstree_events.js
+++ b/assets/js/jstree_events.js
@@ -25,7 +25,10 @@ if (parent.frames && parent.frames.detail) {
$('#lazy').on('activate_node.jstree', function (e, data) {
if (window.parent.frames.detail) {
- window.parent.frames.detail.location.replace(data.node.a_attr.href);
+ let { frameLocation } = window.parent.frames.detail,
+ nextLocation = data.node.a_attr.href;
+ console.log({ nextLocation });
+ (frameLocation || globalThis.location).replace(nextLocation);
}
});
$('#lazy').on('state_ready.jstree', function (e, data) {