Use `this' instead of temporary.
authorMike Taylor <mike@indexdata.com>
Thu, 27 Feb 2014 16:05:37 +0000 (16:05 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 27 Feb 2014 16:05:37 +0000 (16:05 +0000)
tools/htdocs/mkws.js

index 2ac55f6..7c11d11 100644 (file)
@@ -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);
            });