mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
7860cdc769
|
@ -583,7 +583,7 @@ function uploadDocument($request, $response, $args) { /* {{{ */
|
|||
unlink($temp);
|
||||
if($res) {
|
||||
$doc = $res[0];
|
||||
$rec = array('id'=>(int)$doc->getId(), 'name'=>$doc->getName());
|
||||
$rec = array('id'=>(int)$doc->getId(), 'name'=>$doc->getName(), 'version'=>$doc->getLatestContent()->getVersion());
|
||||
return $response->withJson(array('success'=>true, 'message'=>'Upload succeded', 'data'=>$rec), 200);
|
||||
} else {
|
||||
return $response->withJson(array('success'=>false, 'message'=>'Upload failed', 'data'=>''), 500);
|
||||
|
@ -645,7 +645,7 @@ function updateDocument($request, $response, $args) { /* {{{ */
|
|||
|
||||
unlink($temp);
|
||||
if($res) {
|
||||
$rec = array('id'=>(int)$document->getId(), 'name'=>$document->getName());
|
||||
$rec = array('id'=>(int)$document->getId(), 'name'=>$document->getName(), 'version'=>$document->getLatestContent()->getVersion());
|
||||
return $response->withJson(array('success'=>true, 'message'=>'Upload succeded', 'data'=>$rec), 200);
|
||||
} else {
|
||||
return $response->withJson(array('success'=>false, 'message'=>'Upload failed', 'data'=>''), 500);
|
||||
|
|
|
@ -1534,7 +1534,7 @@ $(document).ready(function() {
|
|||
} else {
|
||||
$content .= "\"";
|
||||
}
|
||||
$content .= "".((!$norequire && $attrdef->getMinValues() > 0) ? ' required' : '')." class=\"chzn-select-deselect\" data-placeholder=\"".getMLText("select_value")."\">";
|
||||
$content .= "".((!$norequire && $attrdef->getMinValues() > 0) ? ' required' : '')." class=\"chzn-select\" data-placeholder=\"".getMLText("select_value")."\">";
|
||||
if(!$attrdef->getMultipleValues()) {
|
||||
$content .= "<option value=\"\"></option>";
|
||||
}
|
||||
|
@ -1854,6 +1854,12 @@ $(function() {
|
|||
$('#jqtree<?php echo $formid ?>').tree('openNode', node);
|
||||
// event.preventDefault();
|
||||
if(node.is_folder) {
|
||||
if(typeof node.fetched == 'undefined') {
|
||||
node.fetched = true;
|
||||
$(this).tree('loadDataFromUrl', node, function () {
|
||||
$(this).tree('openNode', node);}
|
||||
);
|
||||
}
|
||||
folderSelected<?php echo $formid ?>(node.id, node.name);
|
||||
} else
|
||||
documentSelected<?php echo $formid ?>(node.id, node.name);
|
||||
|
|
|
@ -193,7 +193,7 @@ $(document).ready(function() {
|
|||
$options[] = array(-1, getMLText('select_one'));
|
||||
foreach ($allUsers as $currUser) {
|
||||
if (!$currUser->isGuest())
|
||||
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), ($currUser->getID()==$user->getID()), array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
|
||||
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), false, array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
|
||||
}
|
||||
$this->formField(
|
||||
getMLText("user"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user