From cee365e65979d4602ec161066ed177449485fab0 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Fri, 18 Mar 2016 12:29:53 -0400 Subject: Suppress dashboard save icon until needed. --- src/usr/local/www/head.inc | 3 +-- src/usr/local/www/index.php | 12 ++++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'src/usr') diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index 3d7a159..badc788 100644 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -509,8 +509,7 @@ if (($pagename === "index.php") && ($numColumns > 2)) {
  • - - " id="btnstore"> + " id="btnstore" class="invisible">
  • diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index bb064af..31fd1ff 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -389,7 +389,7 @@ foreach ($widgets as $widgetname => $widgetconfig) { $columnWidth = 12 / $numColumns; for ($currentColumnNumber = 1; $currentColumnNumber <= $numColumns; $currentColumnNumber++) { - + //if col$currentColumnNumber exists if (isset($widgetColumns['col'.$currentColumnNumber])) { @@ -434,7 +434,7 @@ foreach ($widgets as $widgetname => $widgetconfig) { } else { echo '
    '; } - + } ?> @@ -515,6 +515,14 @@ events.push(function() { return undefined; } }); + + // Show the fa-save icon in the breadcrumb bar if the user opens or closes a panel (In case he/she wants to save the new state) + // (Sometimes this will cause us to see the icon when we don't need it, but better that than the other way round) + $('.panel').on('hidden.bs.collapse shown.bs.collapse', function (e) { + if (e.currentTarget.id != 'widget-available') { + $('#btnstore').removeClass("invisible"); + } + }); }); //]]> -- cgit v1.1