* adjust for xuanxuan locate page.

This commit is contained in:
wangyidong
2018-12-19 16:44:41 +08:00
parent d3fa148cb3
commit df6ca19290
10 changed files with 23 additions and 22 deletions
+1 -2
View File
@@ -310,10 +310,10 @@ class doc extends control
$this->send(array('result' => 'fail', 'message' => sprintf($this->lang->duplicate, $this->lang->doc->common), 'locate' => $this->createLink('doc', 'view', "docID=$docID")));
}
$this->action->create('doc', $docID, 'Created');
if($this->app->getViewType() == 'xhtml') die(js::closeXXModal());
$vars = "libID=$libID&browseType=byModule&moduleID={$this->post->module}&orderBy=id_desc&from=$this->from";
$link = $this->createLink('doc', 'browse', $vars);
if($this->app->getViewType() == 'xhtml') $link = $this->createLink('doc', 'view', "docID=$docID");
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $link));
}
@@ -386,7 +386,6 @@ class doc extends control
$actionID = $this->action->create('doc', $docID, $action, $fileAction . $this->post->comment);
if(!empty($changes)) $this->action->logHistory($actionID, $changes);
}
if($this->app->getViewType() == 'xhtml') die(js::closeXXModal());
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('doc', 'view', "docID=$docID")));
}