* The judgment logic of pop-up window is changed to isInModal function.

This commit is contained in:
tianshujie
2023-11-03 11:10:01 +08:00
parent f5564ebc9a
commit 0ea063425b
24 changed files with 50 additions and 50 deletions
+2 -2
View File
@@ -553,7 +553,7 @@ class api extends control
else
{
$this->doc->delete(TABLE_DOCLIB, $libID);
if(isonlybody())
if(isInModal())
{
unset($_GET['onlybody']);
return print(js::locate($this->createLink('api', 'index'), 'parent.parent'));
@@ -625,7 +625,7 @@ class api extends control
$this->action->create('api', $api->id, 'Created');
if(isonlybody()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => 'true', 'callback' => "parentLocate({$api->id}, {$api->lib}, {$api->module})"));
if(isInModal()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => 'true', 'callback' => "parentLocate({$api->id}, {$api->lib}, {$api->module})"));
return $this->sendSuccess(array('locate' => helper::createLink('api', 'index', "libID={$api->lib}&moduleID={$api->module}&apiID={$api->id}")));
}