X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=7c11d114aa50aca215aae6574f34f90db39381bd;hb=b37b485f27da9717619c8847ce3f30294a67b12e;hp=72ca3f3220fb785b24b154b908359ce2edd95954;hpb=5a8ded8d2a75ea7b0ca1412ec837d8f33114edbc;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 72ca3f3..7c11d11 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -918,7 +918,7 @@ function team($, teamName) { // ### There is only one match here by design: fix not to bother looping $('.mkwsSearch.mkwsTeam_' + m_teamName).each(function (i, obj) { var node = this; - mkws.handle_node_with_team(node, function(tname) { + mkws.handle_node_with_team(this, function(tname) { $(node).html('\
\ \ @@ -988,7 +988,7 @@ function team($, teamName) { $('.mkwsSearchForm.mkwsTeam_' + m_teamName).each(function (i, obj) { debug("adding search-forms for team '" + m_teamName + "'"); var node = this; - mkws.handle_node_with_team(node, function(tname) { + mkws.handle_node_with_team(this, function(tname) { debug("adding search-form '" + tname + "' for team '" + m_teamName + "'"); $(node).submit(onFormSubmitEventHandler); }); @@ -1247,7 +1247,7 @@ function team($, teamName) { tname = cname.replace(/^mkwsTeam_/, ''); } } - callback(tname); + callback.call(this, tname); }