From 25cf5f6973501dfb4f405fa8ffbba6a0a9eb3d43 Mon Sep 17 00:00:00 2001 From: Florian Strohmaier Date: Wed, 13 Apr 2016 12:48:09 +0200 Subject: [PATCH] JS: Update container toggles behavior according to removal of fix controls event trigger refs #8590 --- public/js/icinga/behavior/container-toggles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/icinga/behavior/container-toggles.js b/public/js/icinga/behavior/container-toggles.js index fe6742c4e..6bfd4dbfe 100644 --- a/public/js/icinga/behavior/container-toggles.js +++ b/public/js/icinga/behavior/container-toggles.js @@ -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();