mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
Change order of snapshots versions
This commit is contained in:
parent
981839eb6f
commit
76a1f73989
2 changed files with 2 additions and 2 deletions
|
@ -342,7 +342,7 @@ var MyModuleRepositories = (function() {
|
|||
dataType: 'json',
|
||||
success: function(data) {
|
||||
let snapshotItem = $(data.html);
|
||||
FULL_VIEW_MODAL.find('.snapshots-container-scrollbody').append(snapshotItem);
|
||||
FULL_VIEW_MODAL.find('.snapshots-container-scrollbody').prepend(snapshotItem);
|
||||
setTimeout(function() {
|
||||
checkSnapshotStatus(snapshotItem);
|
||||
}, STATUS_POLLING_INTERVAL);
|
||||
|
|
|
@ -74,7 +74,7 @@ class MyModuleRepositorySnapshotsController < ApplicationController
|
|||
|
||||
@repository_snapshots = @my_module.repository_snapshots
|
||||
.where(parent_id: params[:repository_id])
|
||||
.order(:updated_at)
|
||||
.order(updated_at: :desc)
|
||||
render json: {
|
||||
html: render_to_string(
|
||||
partial: 'my_modules/repositories/full_view_sidebar',
|
||||
|
|
Loading…
Reference in a new issue