From 60a397929857c23ce4d319825dffd2e2bd150e25 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 27 Jan 2014 17:24:58 +0000 Subject: [PATCH] *Finally* land on correct code for setting HTML for all mkwsSearch objects. --- tools/htdocs/mkws.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index ecba8da..6245215 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -863,11 +863,16 @@ function _make_mkws_team($, teamName) { // For some reason, doing this programmatically results in // document.mkwsSearchForm.mkwsQuery being undefined, hence the raw HTML. debug("HTML search form"); - $("#mkwsSearch").html('\ -
\ - \ - \ + $('.mkwsSearch').each(function (i, obj) { + var node = this; + mkws.handle_node_with_team(node, function(tname) { + $(node).html('\ +\ + \ + \
'); + }); + }); debug("HTML records"); // If the application has an #mkwsResults, populate it in the -- 1.7.10.4