From: Mike Taylor Date: Mon, 27 Jan 2014 17:24:58 +0000 (+0000) Subject: *Finally* land on correct code for setting HTML for all mkwsSearch objects. X-Git-Tag: 1.0.0~1582 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;ds=sidebyside;h=60a397929857c23ce4d319825dffd2e2bd150e25;p=mkws-moved-to-github.git *Finally* land on correct code for setting HTML for all mkwsSearch objects. --- 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