X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=646f58014b4da17b29c1bdf20559c4cb6c59984b;hb=c8d7a38bbdb2874e3f7a0ff4ec8c7f21727abee6;hp=c6e5797a38e57019ae1a9fdda1e568fb752e11e5;hpb=fea54f54a7494531aee9a824e1848c0c22b26a7f;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index c6e5797..646f580 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -407,7 +407,6 @@ function team($, teamName) { { $('.mkwsSearchForm').each(function (i, obj) { var node = this; - debug("adding class 'foo' to node " + node); mkws.handle_node_with_team(node, function(tname) { $(node).submit(onFormSubmitEventHandler); }); @@ -426,7 +425,11 @@ function team($, teamName) { // when search button pressed function onFormSubmitEventHandler() { - that.newSearch(document.mkwsSearchForm.mkwsQuery.value); + mkws.handle_node_with_team(this, function (tname) { + var val = $('.mkwsQuery.mkwsTeam_' + tname).val(); + mkws.teams[tname].newSearch(val); + }); + return false; }