* Submit form by ajax.
This commit is contained in:
@@ -1063,7 +1063,7 @@ class project extends control
|
||||
{
|
||||
$changes = $this->project->update($projectID);
|
||||
$this->project->updateProducts($projectID);
|
||||
if(dao::isError()) die(js::error(dao::getError()));
|
||||
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
if($action == 'undelete')
|
||||
{
|
||||
$this->loadModel('action');
|
||||
@@ -1076,7 +1076,7 @@ class project extends control
|
||||
$actionID = $this->loadModel('action')->create('project', $projectID, 'edited');
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
}
|
||||
die(js::locate($this->createLink('project', 'view', "projectID=$projectID"), 'parent'));
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('view', "projectID=$projectID")));
|
||||
}
|
||||
|
||||
/* Set menu. */
|
||||
|
||||
Reference in New Issue
Block a user