From: Mike Taylor Date: Thu, 24 Apr 2014 13:57:27 +0000 (+0100) Subject: Do not attempt to hide the Termlists widget if it doesn't exist. X-Git-Tag: 1.0.0~848^2~1 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=0201e8778eb4770b20628b78323438d49f6c80b3;p=mkws-moved-to-github.git Do not attempt to hide the Termlists widget if it doesn't exist. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index 7f55312..796f466 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -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