From: Mike Taylor Date: Thu, 30 Jan 2014 16:24:41 +0000 (+0000) Subject: domReady() only makes each search-form once :-) X-Git-Tag: 1.0.0~1564^2 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=70bfae57902896a69e8bf4b4261574c555afcf46;hp=c8d7a38bbdb2874e3f7a0ff4ec8c7f21727abee6;p=mkws-moved-to-github.git domReady() only makes each search-form once :-) --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 646f580..6c014f8 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -405,9 +405,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); }); });