mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 14:54:38 +08:00
Merge pull request #2371 from urbanrotnik/ur-sci-4178
Fix attachments sorting [SCI-4178]
This commit is contained in:
commit
d069173ad7
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
<div class="pseudo-attachment-container" style="order: <%= assets_count - i %>">
|
||||
<div class="pseudo-attachment-container" style="order: <%= i %>">
|
||||
<%= link_to rails_blob_path(asset.file, disposition: 'attachment'),
|
||||
class: 'file-preview-link',
|
||||
id: "modal_link#{asset.id}",
|
||||
|
@ -8,8 +8,8 @@
|
|||
'preview-url': asset_file_preview_path(asset),
|
||||
'order-atoz': order_atoz,
|
||||
'order-ztoa': order_ztoa,
|
||||
'order-old': i,
|
||||
'order-new': assets_count - i,
|
||||
'order-new': i,
|
||||
'order-old': assets_count - i,
|
||||
} do %>
|
||||
|
||||
<%= render partial: 'shared/asset_placeholder.html.erb', locals: { edit_page: false, asset: asset } %>
|
||||
|
|
Loading…
Reference in a new issue