mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-10-11 19:04:24 +00:00
Fix automatic id generation for RessourceLists
This commit is contained in:
1 parent
e356be77da
commit
0647537192
1 file changed
+1
-1
@@ -43,7 +43,7 @@ class RessourceList {
|
|||||||
|
|
||||||
if (!(listElement.hasAttribute('id'))) {
|
if (!(listElement.hasAttribute('id'))) {
|
||||||
for (i = 0; true; i++) {
|
for (i = 0; true; i++) {
|
||||||
if (document.querySelector(`ressource-list-${i}`)) {continue;}
|
if (document.querySelector(`#ressource-list-${i}`)) {continue;}
|
||||||
listElement.id = `ressource-list-${i}`;
|
listElement.id = `ressource-list-${i}`;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user