From 0201e8778eb4770b20628b78323438d49f6c80b3 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 24 Apr 2014 14:57:27 +0100 Subject: [PATCH] Do not attempt to hide the Termlists widget if it doesn't exist. --- src/mkws-team.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 1.7.10.4