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();}); });