diff options
Diffstat (limited to 'assets/js/jstree_events.js')
-rw-r--r-- | assets/js/jstree_events.js | 5 |
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) { |