diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js index b18e12f6bd..5b184803eb 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;