* Code for task #89915.

This commit is contained in:
tianshujie
2023-04-04 15:45:25 +08:00
parent 3f8ff00846
commit 0d77839340
4 changed files with 32 additions and 5 deletions
+2 -2
View File
@@ -387,7 +387,7 @@ class tree extends control
if(!empty($_POST))
{
$this->tree->update($moduleID);
die(js::reload('parent'));
return print(js::reload('parent'));
}
$module = $this->tree->getById($moduleID);
@@ -509,7 +509,7 @@ class tree extends control
if($module->type == 'line') $confirmLang = $this->lang->tree->confirmDeleteLine;
if($module->type == 'host') $confirmLang = $this->lang->tree->confirmDeleteHost;
if(strpos($this->config->tree->groupTypes, ",$module->type,") !== false) $confirmLang = $this->lang->tree->confirmDeleteGroup;
die(js::confirm($confirmLang, $this->createLink('tree', 'delete', "rootID=$rootID&moduleID=$moduleID&confirm=yes")));
return print(js::confirm($confirmLang, $this->createLink($this->app->rawModule, $this->app->rawMethod, "rootID=$rootID&moduleID=$moduleID&confirm=yes")));
}
else
{