diff --git a/app/views/dmsf_upload/upload_files.html.erb b/app/views/dmsf_upload/upload_files.html.erb index 04599d06..5e7c14ed 100644 --- a/app/views/dmsf_upload/upload_files.html.erb +++ b/app/views/dmsf_upload/upload_files.html.erb @@ -27,14 +27,14 @@ <%= render partial: '/dmsf/path', locals: { folder: @folder, filename: nil, title: l(:heading_uploaded_files) } %> +<%= render partial: 'dmsf/description' %> + <% if @uploads.size > 1 %>
<%= l(:label_scroll_down) %>
<% end %> -<%= render partial: 'dmsf/description' %> - <% unless @uploads.empty? %> <%= form_tag({ action: 'commit_files', id: @project, folder_id: @folder }, method: :post) do %> <% @uploads.each_with_index do |upload, i| %> @@ -53,11 +53,11 @@ <%= late_javascript_tag do %> // When the user scrolls the page, execute scrollFunction window.onscroll = function() { - scrollFunction() + scrollFunction(); }; - var scroller = $(".dmsf-scroll"); - var firstUploadBox = $(".dmfs-box-tabular:first"); - var offset = firstUploadBox.offset(); + let scroller = $(".dmsf-scroll"); + let firstUploadBox = $(".dmfs-box-tabular:first"); + let offset = firstUploadBox.offset(); // Add the sticky class to the header when you reach its scroll position. // Remove "sticky" when you leave the scroll position function scrollFunction() {