From: Mike Taylor Date: Mon, 28 Apr 2014 16:29:45 +0000 (+0100) Subject: Completely remove the mkwsHtmlSwitch() function, since all it did was X-Git-Tag: 1.0.0~821 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=3bbfb7a75e2f2add17679883ebecd419b692fb2a;p=mkws-moved-to-github.git Completely remove the mkwsHtmlSwitch() function, since all it did was generate the mkwsTargets inner HTML, which the widget now does for itself. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index d52cc00..d0ebcc5 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -412,8 +412,6 @@ function team($, teamName) { ranking_data += ''; findnode(".mkwsRanking").html(ranking_data); - mkwsHtmlSwitch(); - findnode('.mkwsSearchForm').submit(function() { var val = widgetNode('Query').val(); newSearch(val); @@ -549,17 +547,6 @@ function team($, teamName) { } - function mkwsHtmlSwitch() { - log("HTML targets"); - var node = findnode(".mkwsTargets"); - node.html('\ -
\ - No information available yet.\ -
'); - node.css("display", "none"); - } - - // Translation function. At present, this is properly a // global-level function (hence the assignment to mkws.M) but we // want to make it per-team so different teams can operate in