From 47b35e97fb5f68d97f21633b302185212eabd73a Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Mon, 27 Jul 2020 16:14:15 -0500 Subject: [PATCH] implement minimize chevron for filterbar --- web/skins/classic/includes/functions.php | 11 +++++++++++ web/skins/classic/views/console.php | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 08bfdb472..bc963cd06 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -151,6 +151,17 @@ if ( $css != 'base' ) Cookie.write('zmHeaderFlip', 'up', {duration: 10*365} ); } }); + jQuery("#fbflip").click(function() { + jQuery("#fbpanel").slideToggle("slow"); + var fbflip = jQuery("#fbflip"); + if ( fbflip.html() == 'keyboard_arrow_up' ) { + fbflip.html('keyboard_arrow_down'); + Cookie.write('zmFilterBarFlip', 'down', {duration: 10*365} ); + } else { + fbflip.html('keyboard_arrow_up'); + Cookie.write('zmFilterBarFlip', 'up', {duration: 10*365} ); + } + }); }); var $j = jQuery.noConflict(); // $j is now an alias to the jQuery function; creating the new alias is optional. diff --git a/web/skins/classic/views/console.php b/web/skins/classic/views/console.php index 7d9600d5f..edf44516e 100644 --- a/web/skins/classic/views/console.php +++ b/web/skins/classic/views/console.php @@ -164,7 +164,9 @@ getBodyTopHTML(); -
+
view_list   + +  keyboard_arrow_