diff options
author | jim-p <jimp@pfsense.org> | 2013-12-05 15:04:20 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-12-05 15:05:24 -0500 |
commit | a6d96f9b80714638f029c291a454c4f51acc7553 (patch) | |
tree | 7c4f23d82812cf4b2e46e6e23eb08a752c756052 /usr | |
parent | 21d74c8e79948cd05c11f0ab79a463aea4bff2ce (diff) | |
download | pfsense-a6d96f9b80714638f029c291a454c4f51acc7553.zip pfsense-a6d96f9b80714638f029c291a454c4f51acc7553.tar.gz |
Also account for a widget being null/not defined, and not just closed/open.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/javascript/index/ajax.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js index fa33914..e57e842 100644 --- a/usr/local/www/javascript/index/ajax.js +++ b/usr/local/www/javascript/index/ajax.js @@ -183,7 +183,7 @@ function updateInterfaces(x){ function widgetActive(x) { var widget = jQuery('#' + x + '-container'); - if ((widget != null) && (widget.css('display') != "none")) + if ((widget != null) && (widget.css('display') != null) && (widget.css('display') != "none")) return true; else return false; @@ -192,4 +192,4 @@ function widgetActive(x) { /* start updater */ jQuery(document).ready(function(){ setTimer(); -});
\ No newline at end of file +}); |