Remove extraneous logging.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index c6e5797..646f580 100644 (file)
@@ -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;
     }