This commit is contained in:
zhouxin
2022-03-15 09:07:58 +00:00
parent 520148796d
commit 1140f79663
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -876,7 +876,7 @@ class testtask extends control
$this->executeHooks($taskID);
if(isonlybody()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent'));
if(isonlybody()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent.parent'));
return $this->send(array('result' => 'success', 'message' => $this->lang->success, 'locate' => $this->createLink('testtask', 'view', "taskID=$taskID")));
}
+4
View File
@@ -11,6 +11,10 @@ $(document).ready(function()
parent.$.cookie('selfClose', 1);
setTimeout(function(){parent.$.closeModal(null, 'this')}, 1200);
}
else if(response.locate == 'parent.parent')
{
setTimeout(function(){parent.location.reload();}, 1200);
}
else
{
setTimeout(function(){window.location.href = response.locate;}, 1200);