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());
|
||||
}
|
||||
|
||||
$module = $this->view->escape($hook->getModule()->getName());
|
||||
$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
|
||||
. '</div>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue