mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
get allowed file types from view for passing the getFileChooserHtml()
This commit is contained in:
parent
b3633b7cf0
commit
3024bf6f5f
|
@ -159,6 +159,9 @@ console.log(params);
|
|||
$sortusersinlist = $this->params['sortusersinlist'];
|
||||
$orderby = $this->params['orderby'];
|
||||
$folderid = $folder->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');
|
||||
|
@ -388,7 +391,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(
|
||||
|
|
|
@ -146,6 +146,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');
|
||||
|
@ -206,7 +209,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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user