From: Mike Taylor Date: Thu, 6 Feb 2014 14:10:02 +0000 (+0000) Subject: Remove no-longer-needed logging. X-Git-Tag: 1.0.0~1515^2 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=0071d64575e2c1850fd18d536d504cf40fcd1e4a Remove no-longer-needed logging. Remove unnecessary blanking of new search box. (That was causing a problem for second and subsequent teams.) Initial hiding of termlists made term-aware. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index e54c217..2896c44 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -410,7 +410,6 @@ function team($, teamName) { // wait until the DOM is ready function domReady () { - debug("starting domReady()"); $('.mkwsSearchForm.mkwsTeam_' + m_teamName).each(function (i, obj) { debug("adding search-forms for team '" + m_teamName + "'"); var node = this; @@ -420,13 +419,6 @@ function team($, teamName) { }); }); - debug("in domReady() 1"); - debug("document = '" + document + "'"); - debug("document.mkwsSearchForm = '" + document.mkwsSearchForm + "'"); - debug("document.mkwsSearchForm.mkwsQuery = '" + document.mkwsSearchForm.mkwsQuery + "'"); - debug("document.mkwsSearchForm.mkwsQuery.value = '" + document.mkwsSearchForm.mkwsQuery.value + "'"); - document.mkwsSearchForm.mkwsQuery.value = ''; - debug("in domReady() 2"); if (document.mkwsSelect) { debug("messing with mkwsSelect"); if (document.mkwsSelect.mkwsSort) @@ -434,7 +426,6 @@ function team($, teamName) { if (document.mkwsSelect.mkwsPerpage) document.mkwsSelect.mkwsPerpage.onchange = onSelectDdChange; } - debug("finished domReady()"); } @@ -963,7 +954,7 @@ function team($, teamName) { debug("after domReady()"); // on first page, hide the termlist - $(document).ready(function() { $("#mkwsTermlists").hide(); }); + $(document).ready(function() { $(".mkwsTermlists.mkwsTeam_" + m_teamName).hide(); }); var motd = $(".mkwsMOTD.mkwsTeam_" + m_teamName); var container = $(".mkwsMOTDContainer.mkwsTeam_" + m_teamName); debug("for team '" + m_teamName + "', motd=" + motd + "(" + motd.length + "), container=" + container + "(" + container.length + ")");