diff options
author | Renato Botelho <renato@netgate.com> | 2017-02-14 09:24:53 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-02-14 09:24:53 -0200 |
commit | 40bb19b31e187664ffd99af9f4b7d3782a58d527 (patch) | |
tree | 64b9ecc9be09742a656e412ae66ab93ffb06b878 /src/usr/local/www/index.php | |
parent | 744f5734d8811f37f796fbff8cd920fc7832cc8d (diff) | |
parent | 621dd53615f14f5732a347346b4b8444e81ea97f (diff) | |
download | pfsense-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.php | 7 |
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') + ','; + } }); }); |