* Fix bug#54483.

This commit is contained in:
xieqiyu
2022-05-17 15:08:06 +08:00
parent 3d3000f06f
commit 39959d08e9
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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'));
+2
View File
@@ -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();});
});