* Change the upload file control to uploader.
This commit is contained in:
+2
-13
@@ -319,19 +319,8 @@ class doc extends control
|
||||
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $docID));
|
||||
$objectID = zget($lib, $lib->type, 0);
|
||||
$params = "type={$lib->type}&objectID=$objectID&libID={$lib->id}&docID=" . $docResult['id'];
|
||||
$link = isonlybody() ? 'parent' : $this->createLink('doc', 'objectLibs', $params, 'html') . '#app=' . $this->app->tab;
|
||||
$response = array('result' => 'success', 'message' => $this->lang->saveSuccess);
|
||||
|
||||
if(isonlybody() and $docResult['docType'] == 'text')
|
||||
{
|
||||
$link = helper::createLink('doc', 'edit', "docID=$docID&comment=false&objectType=$objectType&objectID=$objectID&libID={$docResult['libID']}");
|
||||
|
||||
$response['callback'] = "redirect2Edit($docID, \"$objectType\", $objectID, {$docResult['libID']})";
|
||||
}
|
||||
else
|
||||
{
|
||||
$response['locate'] = "$link";
|
||||
}
|
||||
$link = isonlybody() ? 'parent' : $this->createLink('doc', 'objectLibs', $params) . '#app=' . $this->app->tab;
|
||||
$response = array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $link);
|
||||
|
||||
return $this->send($response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user