From 9484ddf3fc0e14c63b704e96bb916944fe85a65c Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Fri, 28 Feb 2014 13:49:48 +0100 Subject: [PATCH] Add MOTD to teh div id to class conversion list MKWS-133 --- examples/htdocs/heikki-motd.html | 32 +++++++++++++++++++++++++++++--- tools/htdocs/mkws.js | 4 ++-- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/examples/htdocs/heikki-motd.html b/examples/htdocs/heikki-motd.html index 68b4b5c..feb2aae 100644 --- a/examples/htdocs/heikki-motd.html +++ b/examples/htdocs/heikki-motd.html @@ -2,12 +2,38 @@ Heikkis MOTD test - - + + + + + + + + + +

Heikkis test for the MOTD

-
This is the MOTD div
+
This is the mkwsMOTD div
+
The MOTD should not be visible above this line.
diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 7c11d11..40d703f 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -1004,7 +1004,7 @@ function team($, teamName) { // on first page, hide the termlist $(document).ready(function() { $(".mkwsTermlists.mkwsTeam_" + m_teamName).hide(); }); var motd = $(".mkwsMOTD.mkwsTeam_" + m_teamName); - var container = $(".mkwsMOTDContainer.mkwsTeam_" + m_teamName); + var container = $(".mkwsMOTDContainer.mkwsTeam_" + m_teamName); if (motd.length && container.length) { // Move the MOTD from the provided element down into the container motd.appendTo(container); @@ -1418,7 +1418,7 @@ function team($, teamName) { // elements that have the old magic IDs. var ids = [ "Switch", "Lang", "Search", "Pager", "Navi", "Results", "Records", "Targets", "Ranking", - "Termlists", "Stat" ]; + "Termlists", "Stat", "MOTD" ]; for (var i = 0; i < ids.length; i++) { var id = 'mkws' + ids[i]; var node = $('#' + id); -- 1.7.10.4