diff options
author | jim-p <jimp@pfsense.org> | 2011-09-13 13:56:30 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-09-13 13:56:30 -0400 |
commit | 02ed814162a10b869a29dd2f2bd8269e8b0fdee5 (patch) | |
tree | 05ee258078e57c1db9c36c556307c9b76fb9adf8 /usr/local | |
parent | ff2d4578efdff98c04bbdd5e9001096a7c62afec (diff) | |
download | pfsense-02ed814162a10b869a29dd2f2bd8269e8b0fdee5.zip pfsense-02ed814162a10b869a29dd2f2bd8269e8b0fdee5.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.js | 2 |
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; |