mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Fix automatic id generation for RessourceLists
This commit is contained in:
parent
e356be77da
commit
0647537192
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user