From: Heikki Levanto Date: Fri, 28 Feb 2014 12:49:48 +0000 (+0100) Subject: Add MOTD to teh div id to class conversion list MKWS-133 X-Git-Tag: 1.0.0~1385 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=9484ddf3fc0e14c63b704e96bb916944fe85a65c Add MOTD to teh div id to class conversion list MKWS-133 --- 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);