From 39959d08e9f96b4dab256f2fc0d0e7dbc44d3031 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 17 May 2022 15:08:06 +0800 Subject: [PATCH] * Fix bug#54483. --- module/tree/control.php | 2 +- module/tree/js/browse.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/module/tree/control.php b/module/tree/control.php index f9e3d76c0f..6ba17a19fe 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -392,7 +392,7 @@ class tree extends control if(dao::isError()) return print(js::error(dao::getError())); if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'idList' => $moduleIDList)); - if(($viewType == 'doc' || $viewType == 'api') and isonlybody()) die(js::reload('parent.parent')); + if(($viewType == 'doc' || $viewType == 'api') and isonlybody()) die(js::reload('parent')); if(isonlybody()) die(js::closeModal('parent.parent', '', "function(){parent.parent.$('a.refresh').click()}")); die(js::reload('parent')); diff --git a/module/tree/js/browse.js b/module/tree/js/browse.js index 4b2a9692a0..8e2576af23 100644 --- a/module/tree/js/browse.js +++ b/module/tree/js/browse.js @@ -76,4 +76,6 @@ $(document).ready(function() { toggleCopy(false); $('[data-id="edit"] a').modalTrigger({type: 'iframe', width: 500}); + + parent.$('#triggerModal .modal-content .modal-header .close').on('click', function(){parent.location.reload();}); });