mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-17 13:10:12 +02:00
DetailviewExtension: Make sure data-icinga-module is set on container
To allow the eventhandler in JS to load and initialize the corresponding module.
This commit is contained in:
parent
b3e0b5d587
commit
ecbfafd25a
@ -92,8 +92,9 @@ abstract class MonitoredObjectController extends Controller
|
|||||||
$html = $this->view->escape($e->getMessage());
|
$html = $this->view->escape($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$module = $this->view->escape($hook->getModule()->getName());
|
||||||
$this->view->extensionsHtml[] =
|
$this->view->extensionsHtml[] =
|
||||||
'<div class="icinga-module module-' . $this->view->escape($hook->getModule()->getName()) . '">'
|
'<div class="icinga-module module-' . $module . '" data-icinga-module="' . $module . '">'
|
||||||
. $html
|
. $html
|
||||||
. '</div>';
|
. '</div>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user