summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-09-13 13:56:30 -0400
committerjim-p <jimp@pfsense.org>2011-09-13 13:57:47 -0400
commit2100a4542e924df509a8ca8a43116a448ffa61ca (patch)
tree628aafb4d5621629c755b77ceef8cfa841e3d541 /usr/local
parentd3ce6a8be35c1ee9a712b6e468eb1acd18695e02 (diff)
downloadpfsense-2100a4542e924df509a8ca8a43116a448ffa61ca.zip
pfsense-2100a4542e924df509a8ca8a43116a448ffa61ca.tar.gz
Check if a widget is null before testing a property. Fixes skipped updates on certain widgets (like the gateway widget) if someone doesn't have the cpu widget file on their fs (which a clean install does not).
Diffstat (limited to 'usr/local')
-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 b18e12f..5b18480 100644
--- a/usr/local/www/javascript/index/ajax.js
+++ b/usr/local/www/javascript/index/ajax.js
@@ -141,7 +141,7 @@ function updateInterfaces(x){
function widgetActive(x) {
var widget = $(x + '-container');
- if (widget.style.display != "none")
+ if ((widget != null) && (widget.style.display != "none"))
return true;
else
return false;
OpenPOWER on IntegriCloud