mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-24 10:27:46 +02:00
JS: Update container toggles behavior according to removal of fix controls event trigger
refs #8590
This commit is contained in:
parent
29b0fde431
commit
25cf5f6973
@ -27,7 +27,7 @@
|
||||
*
|
||||
* @param {object} e Event
|
||||
*/
|
||||
function onFixControls(e) {
|
||||
function onColumnClosed(e) {
|
||||
if (!$('#layout').hasClass('twocols')) {
|
||||
$('#col1 .controls > .close-container-control').remove();
|
||||
$('#col2 .controls > .close-container-control').remove();
|
||||
@ -49,7 +49,7 @@
|
||||
var ContainerToggles = function(icinga) {
|
||||
Icinga.EventListener.call(this, icinga);
|
||||
this.on('rendered', '#col1, #col2', onRendered, this);
|
||||
this.on('fix-controls', '#col1, #col2', onFixControls, this);
|
||||
this.on('close-column', '#col1, #col2', onColumnClosed, this);
|
||||
};
|
||||
|
||||
ContainerToggles.prototype = new Icinga.EventListener();
|
||||
|
Loading…
x
Reference in New Issue
Block a user