diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-03-16 05:46:28 -0700 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-03-16 10:54:53 -0400 |
commit | 91d598815528b71ec9842fed6e5c11ddd6e30438 (patch) | |
tree | 36ba3d77901ab239205143d9f1460f42f5c43f9e /src | |
parent | afecba840bf2094d5e8768d9273ba64b425bd2d9 (diff) | |
download | pfsense-91d598815528b71ec9842fed6e5c11ddd6e30438.zip pfsense-91d598815528b71ec9842fed6e5c11ddd6e30438.tar.gz |
Status / Dashboard - Conceal save icon when not dirty.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/head.inc | 12 | ||||
-rw-r--r-- | src/usr/local/www/index.php | 6 |
2 files changed, 11 insertions, 7 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index 312c052..0f32254 100644 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -507,18 +507,18 @@ if (($pagename === "index.php") && ($numColumns > 2)) { ?> <ul class="context-links"> - <?php if ($dashboard_available_widgets_hidden): ?> + <?php if (isset($widgets)): ?> <li> - <a onclick="$('#widget-available').toggle(360);" title="<?=gettext("Available widgets")?>"> - <i class="fa fa-plus icon-pointer"></i> + <a href="#" title="<?=gettext("Save dashboard layout")?>" id="btnstore" class="invisible"> + <i class="fa fa-save icon-pointer"></i> </a> </li> <?php endif?> - <?php if (isset($widgets)): ?> + <?php if ($dashboard_available_widgets_hidden): ?> <li> - <a href="#" title="<?=gettext("Save dashboard layout")?>" id="btnstore"> - <i class="fa fa-save icon-pointer"></i> + <a onclick="$('#widget-available').toggle(360);" title="<?=gettext("Available widgets")?>"> + <i class="fa fa-plus icon-pointer"></i> </a> </li> <?php endif?> diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 47b3a08..9f49cd6 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -484,7 +484,10 @@ events.push(function() { handle: '.panel-heading', cursor: 'grabbing', connectWith: '.container .col-md-<?=$columnWidth?>', - update: function(){dirty = true;} + update: function(){ + dirty = true; + $('#btnstore').removeClass('invisible'); + } }); // On clicking a widget to install . . @@ -500,6 +503,7 @@ events.push(function() { $('#btnstore').click(function() { updateWidgets(); dirty = false; + $(this).addClass('invisible'); $('[name=widgetForm]').submit(); }); |