X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=b735cf6609951b6d58f3953cab3e57176bd6553d;hb=e1e6241171d921bdf2dddb603ef40422fe1b5519;hp=646f58014b4da17b29c1bdf20559c4cb6c59984b;hpb=c8d7a38bbdb2874e3f7a0ff4ec8c7f21727abee6;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 646f580..b735cf6 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -271,7 +271,8 @@ function team($, teamName) { renderSummary(hit), ''); if (hit.recid == m_curDetRecId) { - html.push(renderDetails(m_curDetRecData)); + if (m_curDetRecData) + html.push(renderDetails(m_curDetRecData)); } } results.html(html.join('')); @@ -405,9 +406,11 @@ function team($, teamName) { // wait until the DOM is ready function domReady () { - $('.mkwsSearchForm').each(function (i, obj) { + $('.mkwsSearchForm.mkwsTeam_' + m_teamName).each(function (i, obj) { + debug("adding search-forms for team '" + m_teamName + "'"); var node = this; mkws.handle_node_with_team(node, function(tname) { + debug("adding search-form '" + tname + "' for team '" + m_teamName + "'"); $(node).submit(onFormSubmitEventHandler); }); });