From 5183428dddf194bae83f35a804cf471b38107107 Mon Sep 17 00:00:00 2001 From: Florian Strohmaier Date: Thu, 19 May 2022 18:34:34 +0200 Subject: [PATCH] navigation.js: Handle toggle-more click --- public/js/icinga/behavior/navigation.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/js/icinga/behavior/navigation.js b/public/js/icinga/behavior/navigation.js index 3befe4bd3..41bf38908 100644 --- a/public/js/icinga/behavior/navigation.js +++ b/public/js/icinga/behavior/navigation.js @@ -21,6 +21,8 @@ this.on('keydown', '#menu .config-menu .config-nav-item', this.onKeyDown, this); + this.on('click', '#toggle-more', this.toggleMoreFlyout, this); + /** * The DOM-Path of the active item * @@ -422,6 +424,10 @@ } } + Navigation.prototype.toggleMoreFlyout = function(e) { + $('#layout').toggleClass('more-button-open'); + } + /** * Called when the history changes *