summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/index.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-02-14 09:24:53 -0200
committerRenato Botelho <renato@netgate.com>2017-02-14 09:24:53 -0200
commit40bb19b31e187664ffd99af9f4b7d3782a58d527 (patch)
tree64b9ecc9be09742a656e412ae66ab93ffb06b878 /src/usr/local/www/index.php
parent744f5734d8811f37f796fbff8cd920fc7832cc8d (diff)
parent621dd53615f14f5732a347346b4b8444e81ea97f (diff)
downloadpfsense-40bb19b31e187664ffd99af9f4b7d3782a58d527.zip
pfsense-40bb19b31e187664ffd99af9f4b7d3782a58d527.tar.gz
Merge pull request #3545 from phil-davis/patch-6
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r--src/usr/local/www/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index c751af4..4e393b3 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -423,8 +423,13 @@ function updateWidgets(newWidget) {
$('.container .col-md-<?=$columnWidth?>').each(function(idx, col) {
$('.panel', col).each(function(idx, widget) {
var isOpen = $('.panel-body', widget).hasClass('in');
+ var widget_basename = widget.id.split('-')[1];
- sequence += widget.id.split('-')[1] + ':' + col.id.split('-')[1] + ':' + (isOpen ? 'open' : 'close') + ',';
+ // Only save details for panels that have id's like'widget-*'
+ // Some widgets create other panels, so ignore any of those.
+ if ((widget.id.split('-')[0] == 'widget') && (typeof widget_basename !== 'undefined')) {
+ sequence += widget_basename + ':' + col.id.split('-')[1] + ':' + (isOpen ? 'open' : 'close') + ',';
+ }
});
});
OpenPOWER on IntegriCloud