in case of an test error dump the HTML DOM to a local file.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index 03cd18e..6c014f8 100644 (file)
@@ -405,10 +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;
-           debug("adding class 'foo' to node " + node);
            mkws.handle_node_with_team(node, function(tname) {
+               debug("adding search-form '" + tname + "' for team '" + m_teamName + "'");
                $(node).submit(onFormSubmitEventHandler);
            });
        });