mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Fix automatic id generation for RessourceLists
This commit is contained in:
		@@ -43,7 +43,7 @@ class RessourceList {
 | 
			
		||||
 | 
			
		||||
    if (!(listElement.hasAttribute('id'))) {
 | 
			
		||||
      for (i = 0; true; i++) {
 | 
			
		||||
        if (document.querySelector(`ressource-list-${i}`)) {continue;}
 | 
			
		||||
        if (document.querySelector(`#ressource-list-${i}`)) {continue;}
 | 
			
		||||
        listElement.id = `ressource-list-${i}`;
 | 
			
		||||
        break;
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user