- Remove die() of action module.
This commit is contained in:
@@ -85,7 +85,7 @@ class action extends control
|
||||
public function undelete($actionID)
|
||||
{
|
||||
$this->action->undelete($actionID);
|
||||
die(js::reload('parent'));
|
||||
echo js::reload('parent');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -98,7 +98,7 @@ class action extends control
|
||||
public function hideOne($actionID)
|
||||
{
|
||||
$this->action->hideOne($actionID);
|
||||
die(js::reload('parent'));
|
||||
echo js::reload('parent');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -112,12 +112,12 @@ class action extends control
|
||||
{
|
||||
if($confirm == 'no')
|
||||
{
|
||||
die(js::confirm($this->lang->action->confirmHideAll, inlink('hideAll', "confirm=yes")));
|
||||
echo js::confirm($this->lang->action->confirmHideAll, inlink('hideAll', "confirm=yes"));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->action->hideAll();
|
||||
die(js::reload('parent'));
|
||||
echo js::reload('parent');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ class action extends control
|
||||
}
|
||||
else
|
||||
{
|
||||
die(js::reload('parent'));
|
||||
echo js::reload('parent');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1384,7 +1384,7 @@ class actionModel extends model
|
||||
{
|
||||
$module = $this->dao->select('*')->from(TABLE_MODULE)->where('id')->eq($action->objectID)->fetch();
|
||||
$repeatName = $this->loadModel('tree')->checkUnique($module);
|
||||
if($repeatName) die(js::alert(sprintf($this->lang->tree->repeatName, $repeatName)));
|
||||
if($repeatName) return print(js::alert(sprintf($this->lang->tree->repeatName, $repeatName)));
|
||||
}
|
||||
|
||||
/* Update deleted field in object table. */
|
||||
|
||||
Reference in New Issue
Block a user