From a56fcc33a24c93cc9bef4bcd2d5dae000eb43d26 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Pi=C4=8Dman?=
Click on the green plus icon New document in the top right of the main view. Then you can use the
- Browse button or simple drag and drop files into the drop-able area. Multiple files ca be
- selected.
+ Browse button or simple drag and drop files into the drop-able area. Multiple files can be selected.
- Recently uploaded files ar listed on the screen. You optionally add a description or delete them if they were
- selected by mistake. When done, click the Uplad button.
+ Recently uploaded files ar listed on the screen. You can delete them, if they were
+ selected by mistake using the trash bin icon. When done, click the Uplad button.
5.11 Add documents
+ If you use [+] icon, you can specify document's details and then you can directly use Commit button.
+ In that case the following commit screeen will be skipped and uploaded documents will be directly stored.
+
Once the new files are uploaded, corresponding documents are created. Here you can specify additional attributes diff --git a/assets/javascripts/attachments_dmsf.js b/assets/javascripts/attachments_dmsf.js index 7ac8b73c..333c569d 100644 --- a/assets/javascripts/attachments_dmsf.js +++ b/assets/javascripts/attachments_dmsf.js @@ -136,11 +136,14 @@ function dmsfAddFile(inputEl, file, eagerUpload) { fileSpan.append(iconDel.click(dmsfRemoveFileLbl)); - if($(inputEl).data('awf')) { + if ($(inputEl).data('awf')) { - let iconWf = $('').attr({href: '/dmsf-workflows/' + $(inputEl).attr( - 'data-project') + "/assign?attachment_id=" + attachmentId, 'class': 'modify-upload icon-only icon-ok', - 'data-remote': 'true'}); + let iconWf = $('').attr({ + href: '/dmsf-workflows/' + $(inputEl).attr( + 'data-project') + "/assign?attachment_id=" + attachmentId, + 'class': 'modify-upload icon-only icon-ok', + 'data-remote': 'true' + }); fileSpan.append(iconWf); } @@ -149,12 +152,15 @@ function dmsfAddFile(inputEl, file, eagerUpload) { let detailsForm = $(inputEl).data('dmsf-file-details-form'); let detailsDiv = $('