diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-02-17 03:23:07 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-02-17 03:23:07 -0800 |
commit | 35d8d6138ee92fbf1287e68a3ef1bb11539e22bb (patch) | |
tree | fb3fc75e5f34ab7f56bb31c83283229ebeb38738 | |
parent | 74db0283581e22a441bfb55d6d0d0a2a7c438c1e (diff) | |
download | pfsense-35d8d6138ee92fbf1287e68a3ef1bb11539e22bb.zip pfsense-35d8d6138ee92fbf1287e68a3ef1bb11539e22bb.tar.gz |
Fix for but #5901
Move the widgets save out of index.php jquery and into head.inc php along with it's counterpart the available widgets icon.
-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; |