mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Proposition that allows to include modules from ar array. Works both on usual page + ajax page
This commit is contained in:
@@ -85,6 +85,12 @@ class ConsoleBlockRenderer extends BlockRenderer
|
||||
foreach ($oBlock->GetJsFilesUrlRecursively(true) as $sFileAbsUrl) {
|
||||
$oPage->LinkScriptFromURI($sFileAbsUrl);
|
||||
}
|
||||
|
||||
// JS modules configurations
|
||||
foreach ($oBlock->GetJsModulesRecursively(true) as $sJsModuleConfig) {
|
||||
$oPage->a_linked_modules_config [] = $sJsModuleConfig;
|
||||
}
|
||||
|
||||
static::AddCssJsTemplatesToPageRecursively($oPage, $oBlock, $aContextParams);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user