diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php
index e740e9651..7d4c25ee9 100644
--- a/views/bootstrap/class.AddDocument.php
+++ b/views/bootstrap/class.AddDocument.php
@@ -199,7 +199,7 @@ $(document).ready(function() {
'type'=>'text',
'id'=>'name',
'name'=>'name',
- 'required'=>true
+ 'required'=>false
)
);
$this->formField(
@@ -310,7 +310,7 @@ $(document).ready(function() {
);
$this->formField(
getMLText("local_file"),
- $enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile[]', false).($enablemultiupload ? '' : '')
+ $enablelargefileupload ? $this->getFineUploaderHtml() : $this->getFileChooserHtml('userfile[]', $enablemultiupload).($enablemultiupload ? '' : '')
);
if($dropfolderdir) {
$this->formField(
diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index 1eb5703c7..4f3f07054 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -1039,7 +1039,7 @@ $(document).ready(function() {
- '.getMLText("browse").'…
+ '.getMLText("browse").'…
@@ -1422,7 +1422,7 @@ $(document).ready(function() {
$content = "\n";
$content .= '
@@ -1445,13 +1445,15 @@ $(document).ready(function() {
?>
/* Set up a callback which is called when a folder in the tree is selected */
modalDropfolderChooser = $('#dropfolderChooser');
-function fileSelected(name) {
- $('#dropfolderfile').val(name);
+function fileSelected(name, form) {
+// $('#dropfolderfile').val(name);
+ $('#dropfolderfile'+form).val(name);
modalDropfolderChooser.modal('hide');
}
-function folderSelected(name) {
- $('#dropfolderfile').val(name);
+function folderSelected(name, form) {
+// $('#dropfolderfile').val(name);
+ $('#dropfolderfile'+form).val(name);
modalDropfolderChooser.modal('hide');
}
diff --git a/views/bootstrap/class.DropFolderChooser.php b/views/bootstrap/class.DropFolderChooser.php
index 1349641db..e23e1d7ce 100644
--- a/views/bootstrap/class.DropFolderChooser.php
+++ b/views/bootstrap/class.DropFolderChooser.php
@@ -40,12 +40,14 @@ class SeedDMS_View_DropFolderChooser extends SeedDMS_Bootstrap_Style {
header('Content-Type: application/javascript');
?>
$('.fileselect').click(function(ev) {
- attr_filename = $(ev.currentTarget).attr('filename');
- fileSelected(attr_filename);
+ attr_filename = $(ev.currentTarget).data('filename');
+ attr_form = $(ev.currentTarget).data('form');
+ fileSelected(attr_filename, attr_form);
});
$('.folderselect').click(function(ev) {
- attr_foldername = $(ev.currentTarget).attr('foldername');
- folderSelected(attr_foldername);
+ attr_foldername = $(ev.currentTarget).data('foldername');
+ attr_form = $(ev.currentTarget).data('form');
+ folderSelected(attr_foldername, attr_form);
});
createRawPreview($dir.'/'.$entry, 'dropfolder/', $mimetype);
echo "
";
if($previewer->hasRawPreview($dir.'/'.$entry, 'dropfolder/')) {
- echo "";
+ echo "";
}
- echo " | ".$entry." | ".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry))." | ".date('Y-m-d H:i:s', filectime($dir.'/'.$entry))." |
\n";
+ echo "
".$entry." | ".SeedDMS_Core_File::format_filesize(filesize($dir.'/'.$entry))." | ".date('Y-m-d H:i:s', filectime($dir.'/'.$entry))." | \n";
} elseif($showfolders && is_dir($dir.'/'.$entry)) {
echo "
";
echo " | ";
- echo "".$entry." | | | ";
+ echo "".$entry." | | | ";
echo "
\n";
}
}