summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/index.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-03-18 12:29:53 -0400
committerStephen Beaver <sbeaver@netgate.com>2016-03-18 12:30:25 -0400
commitcee365e65979d4602ec161066ed177449485fab0 (patch)
treef7d90d1307a425db038656fe61850ebbac79323a /src/usr/local/www/index.php
parent7468ce30d455248c848cc1ef3f7c0a69009a258f (diff)
downloadpfsense-cee365e65979d4602ec161066ed177449485fab0.zip
pfsense-cee365e65979d4602ec161066ed177449485fab0.tar.gz
Suppress dashboard save icon until needed.
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r--src/usr/local/www/index.php12
1 files changed, 10 insertions, 2 deletions
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 '<div class="col-md-' . $columnWidth . '" id="widgets-col' . $currentColumnNumber . '"></div>';
}
-
+
}
?>
@@ -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");
+ }
+ });
});
//]]>
</script>
OpenPOWER on IntegriCloud