Do not attempt to hide the Termlists widget if it doesn't exist.
authorMike Taylor <mike@indexdata.com>
Thu, 24 Apr 2014 13:57:27 +0000 (14:57 +0100)
committerMike Taylor <mike@indexdata.com>
Thu, 24 Apr 2014 13:57:27 +0000 (14:57 +0100)
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