* adjust code.

This commit is contained in:
wangyidong
2018-09-07 14:10:14 +08:00
parent d45210d7bc
commit fb9e21ffa4
9 changed files with 14 additions and 12 deletions
+2 -1
View File
@@ -317,7 +317,8 @@ class tree extends control
if($confirm == 'no')
{
$module = $this->tree->getByID($moduleID);
die(js::confirm($module->type == 'line' ? $this->lang->tree->confirmDeleteLine : $this->lang->tree->confirmDelete, $this->createLink('tree', 'delete', "rootID=$rootID&moduleID=$moduleID&confirm=yes")));
$confirmLang = $module->type == 'line' ? $this->lang->tree->confirmDeleteLine : $this->lang->tree->confirmDelete;
die(js::confirm($confirmLang, $this->createLink('tree', 'delete', "rootID=$rootID&moduleID=$moduleID&confirm=yes")));
}
else
{