mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	Sort after list ressource list insertions
This commit is contained in:
		@@ -85,7 +85,9 @@ class RessourceList {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    // Set a callback function ('() => {return;}') to force List.js perform the
 | 
					    // Set a callback function ('() => {return;}') to force List.js perform the
 | 
				
			||||||
    // add method asynchronous: https://listjs.com/api/#add
 | 
					    // 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) {
 | 
					  remove(id) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user