diff options
-rw-r--r-- | src/usr/local/www/head.inc | 8 | ||||
-rw-r--r-- | src/usr/local/www/index.php | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index 4a52da6..bb89d76 100644 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -477,6 +477,14 @@ if (($pagename === "index.php") && ($numColumns > 2)) { </li> <?php endif?> + <?php if (isset($widgets)): ?> + <li> + <a href="#" title="<?=gettext("Save dashboard layout")?>" id="btnstore"> + <i style="cursor:pointer" class="fa fa-save"></i> + </a> + </li> + <?php endif?> + <?php if ($system_logs_filter_form_hidden): ?> <li> <a onclick="$('#filter-form').toggle(360)" title="<?=gettext("Log Filter")?>"> diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 4df74e9..77a35e6 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -489,8 +489,6 @@ events.push(function() { }); - $('.context-links li:last').prev('li').html('<a href="#" title="<?=gettext("Save dashboard layout")?>" id="btnstore"><i class="fa fa-save"></i></a>'); - $('#btnstore').click(function() { updateWidgets(); dirty = false; |