N°5655 - Refactor portal modal dialog helper to global helper for both GUIs

This commit is contained in:
Molkobain
2022-10-28 10:05:58 +02:00
parent df3fc8be7f
commit 36ec455e6d
10 changed files with 217 additions and 156 deletions

View File

@@ -249,7 +249,7 @@ EOF
oEvent.stopPropagation();
// Note : This could be better if we check for an existing modal first instead of always creating a new one
CombodoPortalToolbox.OpenModal({
CombodoModal.OpenModal({
content: {
endpoint: $(this).attr('href'),
},
@@ -527,7 +527,7 @@ EOF
'selector': '.modal[data-source-element="{$sButtonAddId}"]:first'
};
}
CombodoPortalToolbox.OpenModal(oOptions);
CombodoModal.OpenModal(oOptions);
});
JS
);