summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-25 10:04:06 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-25 10:04:06 -0500
commite94f260c7a6451b11973df2f58843e0f30884ec7 (patch)
treec6fad7967a1c9b33162ac7f898b0cc37c5d2792a /src/usr/local
parenteae6b58d22f4d35b4598b57417a98dd5f6c799b6 (diff)
downloadpfsense-e94f260c7a6451b11973df2f58843e0f30884ec7.zip
pfsense-e94f260c7a6451b11973df2f58843e0f30884ec7.tar.gz
evised #5796
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/index.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index fbaa3a3..c1361e5 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -476,7 +476,7 @@ events.push(function() {
handle: '.panel-heading',
cursor: 'grabbing',
connectWith: '.container .col-md-<?=$columnWidth?>',
- update: showSaveButton
+ update: function(){dirty = true;}
});
// On clicking a widget to install . .
@@ -488,17 +488,18 @@ events.push(function() {
$('[name=widgetForm]').submit();
});
- function showSaveButton() {
- $('.context-links li:last').prev('li').html('<a href="#" class=help-icon" title="Save dashboard layout" id="btnstore"><i class="fa fa-save"></i></a>');
- $('#btnstore').click(function() {
- updateWidgets();
- dirty = false;
- $('[name=widgetForm]').submit();
- });
+ $('.context-links li:last').prev('li').html('<a href="#" class=help-icon" title="Save dashboard layout" id="btnstore"><i class="fa fa-save"></i></a>');
+
+ $('#btnstore').click(function() {
+ updateWidgets();
+ dirty = false;
+ $('[name=widgetForm]').submit();
+ });
+ $('#widgetToggle').click(function() {
dirty = true;
- }
+ });
// provide a warning message if the user tries to change page before saving
$(window).bind('beforeunload', function(){
OpenPOWER on IntegriCloud