Wrong position of 'Scroll down' button
This commit is contained in:
parent
99481f8430
commit
3dbc9e8247
@ -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 %>
|
||||
<div class="dmsf-scroll">
|
||||
<a class="dmsf-scroll-down" href="#footer"><%= l(:label_scroll_down) %></a>
|
||||
</div>
|
||||
<% 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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user