onFormSubmitEventHandler() is now team-aware.
authorMike Taylor <mike@indexdata.com>
Thu, 30 Jan 2014 15:42:25 +0000 (15:42 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 30 Jan 2014 15:42:25 +0000 (15:42 +0000)
tools/htdocs/mkws.js

index c6e5797..03cd18e 100644 (file)
@@ -426,7 +426,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;
     }