Revision 2100a454
Added by Jim Pingle almost 14 years ago
usr/local/www/javascript/index/ajax.js | ||
---|---|---|
141 | 141 |
|
142 | 142 |
function widgetActive(x) { |
143 | 143 |
var widget = $(x + '-container'); |
144 |
if (widget.style.display != "none")
|
|
144 |
if ((widget != null) && (widget.style.display != "none"))
|
|
145 | 145 |
return true; |
146 | 146 |
else |
147 | 147 |
return false; |
Also available in: Unified diff
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).