// Factory function for team objects. As much as possible, this uses
// only member variables (prefixed "m_") and inner functions with
-// private scope. Some functions are visibl as member-functions to be
+// private scope. Some functions are visible as member-functions to be
// called from outside code -- specifically, from generated
// HTML. These functions are that.switchView(), showDetails(),
// limitTarget(), limitQuery(), delimitTarget(), delimitQuery(),
-// pagerPrev(), pagerNext(), showPage().
+// showPage(), pagerPrev(), pagerNext().
//
function team($, teamName) {
var that = {};
mkwsHtmlLang();
log("HTML search form");
- mkws.handleNodeWithTeam(findnode('.mkwsSearch'), function(tname) {
- this.html('\
-<form name="mkwsSearchForm" class="mkwsSearchForm mkwsTeam_' + tname + '" action="" >\
- <input class="mkwsQuery mkwsTeam_' + tname + '" type="text" size="' + mkws_config.query_width + '" />\
- <input class="mkwsButton mkwsTeam_' + tname + '" type="submit" value="' + M('Search') + '" />\
+ findnode('.mkwsSearch').html('\
+<form name="mkwsSearchForm" class="mkwsSearchForm mkwsTeam_' + m_teamName + '" action="" >\
+ <input class="mkwsQuery mkwsTeam_' + m_teamName + '" type="text" size="' + mkws_config.query_width + '" />\
+ <input class="mkwsButton mkwsTeam_' + m_teamName + '" type="submit" value="' + M('Search') + '" />\
</form>');
- });
log("HTML records");
// If the team has a .mkwsResults, populate it in the usual