summaryrefslogtreecommitdiffstats
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:05:24 -0500
commita6d96f9b80714638f029c291a454c4f51acc7553 (patch)
tree7c4f23d82812cf4b2e46e6e23eb08a752c756052
parent21d74c8e79948cd05c11f0ab79a463aea4bff2ce (diff)
downloadpfsense-a6d96f9b80714638f029c291a454c4f51acc7553.zip
pfsense-a6d96f9b80714638f029c291a454c4f51acc7553.tar.gz
Also account for a widget being null/not defined, and not just closed/open.
-rw-r--r--usr/local/www/javascript/index/ajax.js4
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
+});
OpenPOWER on IntegriCloud