mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-28 04:58:46 +02:00
poc form SDK (change dependencies implementation)
This commit is contained in:
@@ -193,7 +193,13 @@ const Form = function(oWidget, oDynamic){
|
||||
for(let sContainerId in aMapDependencies) {
|
||||
|
||||
// retrieve object container
|
||||
const oObjectContainer = document.querySelector(`[data-container-id="${sContainerId}"]`);
|
||||
let oObjectContainer = null;
|
||||
if(oElement.dataset !== undefined && oElement.dataset.containerId === sContainerId){
|
||||
oObjectContainer = oElement;
|
||||
}
|
||||
else{
|
||||
oObjectContainer = oElement.querySelector(`[data-container-id="${sContainerId}"]`);
|
||||
}
|
||||
|
||||
const aMapContainer = aMapDependencies[sContainerId];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user