mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Sort after list ressource list insertions
This commit is contained in:
parent
280c544297
commit
5cd18c4c2a
@ -85,7 +85,9 @@ class RessourceList {
|
||||
}
|
||||
// Set a callback function ('() => {return;}') to force List.js perform the
|
||||
// add method asynchronous: https://listjs.com/api/#add
|
||||
this.list.add(ressources, () => {return;});
|
||||
this.list.add(ressources, () => {
|
||||
this.list.sort('id', {order: 'desc'});
|
||||
});
|
||||
}
|
||||
|
||||
remove(id) {
|
||||
|
Loading…
Reference in New Issue
Block a user