diff --git a/app/views/dmsf_files/show.html.erb b/app/views/dmsf_files/show.html.erb index 583a5739..76bb9aef 100644 --- a/app/views/dmsf_files/show.html.erb +++ b/app/views/dmsf_files/show.html.erb @@ -187,13 +187,9 @@ } }); $('#new_revision_form_content_toggle').click(function() { - if($('#new_revision_form_content').is(':visible')) { - $(this).text('[+]'); - $('#new_revision_form_content').hide(); - } - else { - $(this).text('[-]'); - $('#new_revision_form_content').show(); - } + let newRevisionForm = $('#new_revision_form_content'); + let operator = newRevisionForm.is(':visible') ? '+' : '-'; + $(this).text('[' + operator + ']'); + newRevisionForm.toggle(); }); <% end %> diff --git a/assets/help/en/dmsf_help.html b/assets/help/en/dmsf_help.html index d621a12c..9bce4b72 100644 --- a/assets/help/en/dmsf_help.html +++ b/assets/help/en/dmsf_help.html @@ -411,14 +411,17 @@
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.
-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 = $('