mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
collections
This commit is contained in:
@@ -11,6 +11,8 @@ class CollectionElement extends HTMLElement {
|
||||
const collectionHolder = document.querySelector('.'+e.currentTarget.dataset.collectionHolderClass);
|
||||
const item = document.createElement('div');
|
||||
|
||||
const collectionHolderList = collectionHolder.querySelector('[role="list"]');
|
||||
|
||||
item.innerHTML = collectionHolder
|
||||
.dataset
|
||||
.prototype
|
||||
@@ -19,7 +21,7 @@ class CollectionElement extends HTMLElement {
|
||||
collectionHolder.dataset.index
|
||||
);
|
||||
|
||||
collectionHolder.appendChild(item);
|
||||
collectionHolderList.appendChild(item);
|
||||
collectionHolder.dataset.index++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user