summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-12-05 15:04:20 -0500
committerjim-p <jimp@pfsense.org>2013-12-05 15:09:08 -0500
commit5c43e7bdb6adb5c6128c252534e6a4b96b1fa771 (patch)
treefecf158548b8eb6bd0cf2f3c6f411700742fd3f4 /usr/local/www/javascript
parentf2dd61a76450322a94dc519a85cef56e66d7ae29 (diff)
downloadpfsense-5c43e7bdb6adb5c6128c252534e6a4b96b1fa771.zip
pfsense-5c43e7bdb6adb5c6128c252534e6a4b96b1fa771.tar.gz
Also account for a widget being null/not defined, and not just closed/open.
Diffstat (limited to 'usr/local/www/javascript')
-rw-r--r--usr/local/www/javascript/index/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js
index 73bd208..2fc6ab6 100644
--- a/usr/local/www/javascript/index/ajax.js
+++ b/usr/local/www/javascript/index/ajax.js
@@ -173,7 +173,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;
OpenPOWER on IntegriCloud