* close modal in xuanxuan.

This commit is contained in:
wangyidong
2018-12-19 13:44:31 +08:00
parent 06e898ea57
commit d3fa148cb3
8 changed files with 21 additions and 0 deletions
+2
View File
@@ -294,6 +294,7 @@ class bug extends control
$this->action->create('todo', $output['todoID'], 'finished', '', "BUG:$bugID");
}
if($this->app->getViewType() == 'xhtml') die(js::closeXXModal());
if(defined('RUN_MODE') && RUN_MODE == 'api') $this->send(array('status' => 'success', 'data' => $bugID));
$location = $this->createLink('bug', 'browse', "productID={$this->post->product}&branch=$branch&type=byModule&param={$this->post->module}");
@@ -600,6 +601,7 @@ class bug extends control
$actionID = $this->action->create('bug', $bugID, $action, $fileAction . $this->post->comment);
$this->action->logHistory($actionID, $changes);
}
if($this->app->getViewType() == 'xhtml') die(js::closeXXModal('parent'));
if(defined('RUN_MODE') && RUN_MODE == 'api') $this->send(array('status' => 'success', 'data' => $bugID));
$bug = $this->bug->getById($bugID);
if($bug->toTask != 0)