Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2024-05-02 08:27:47 +02:00
commit 14d79d58e7
2 changed files with 8 additions and 2 deletions

View File

@ -174,6 +174,9 @@ console.log(params);
$orderby = $this->params['orderby'];
$folderid = $folder->getId();
$accessop = $this->params['accessobject'];
$accept = $this->getParam('accept');
if($accept && is_array($accept))
$accept = implode(',', $accept);
$this->htmlAddHeader('<script type="text/javascript" src="../views/'.$this->theme.'/vendors/jquery-validation/jquery.validate.js"></script>'."\n", 'js');
$this->htmlAddHeader('<script type="text/javascript" src="../views/'.$this->theme.'/vendors/jquery-validation/additional-methods.js"></script>'."\n", 'js');
@ -403,7 +406,7 @@ console.log(params);
}
$this->formField(
getMLText("local_file"),
$enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile[]', $enablemultiupload).($enablemultiupload ? '<a class="" id="new-file"><?php printMLtext("add_multiple_files") ?></a>' : '')
$enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile[]', $enablemultiupload, $accept).($enablemultiupload ? '<a class="" id="new-file"><?php printMLtext("add_multiple_files") ?></a>' : '')
);
if($dropfolderdir) {
$this->formField(

View File

@ -149,6 +149,9 @@ console.log(element);
$workflowmode = $this->params['workflowmode'];
$presetexpiration = $this->params['presetexpiration'];
$documentid = $document->getId();
$accept = $this->getParam('accept');
if($accept && is_array($accept))
$accept = implode(',', $accept);
$this->htmlAddHeader('<script type="text/javascript" src="../views/'.$this->theme.'/vendors/jquery-validation/jquery.validate.js"></script>'."\n", 'js');
$this->htmlAddHeader('<script type="text/javascript" src="../views/'.$this->theme.'/vendors/jquery-validation/additional-methods.js"></script>'."\n", 'js');
@ -216,7 +219,7 @@ console.log(element);
$this->contentContainerStart();
$this->formField(
getMLText("local_file"),
$enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile', false)
$enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile', false, $accept)
);
if($dropfolderdir) {
$this->formField(