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

@@ -208,7 +208,7 @@ class ObjectController extends BrickController
$oModifyButton = new JSButtonItem(
'modify_object',
Dict::S('UI:Menu:Modify'),
'CombodoPortalToolbox.OpenUrlInModal("'.$sModifyUrl.'", true);'
'CombodoModal.OpenUrlInModal("'.$sModifyUrl.'", true);'
);
// Putting this one first
$aData['form']['buttons']['actions'][] = $oModifyButton->GetMenuItem() + array('js_files' => $oModifyButton->GetLinkedScripts());