Do not attempt to hide the Termlists widget if it doesn't exist.
[mkws-moved-to-github.git] / src / mkws-team.js
index 7f55312..796f466 100644 (file)
@@ -420,7 +420,10 @@ function team($, teamName) {
        });
 
        // on first page, hide the termlist
-       $(document).ready(function() { widgetNode("Termlists").hide(); });
+       $(document).ready(function() {
+            var t = widgetNode("Termlists");
+            if (t) t.hide();
+        });
         var container = findnode(".mkwsMOTDContainer");
        if (container.length) {
            // Move the MOTD from the provided element down into the container