X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=b844b58023c00e22c7824d55ba8b65c297a7e5ee;hb=14e154c511d693fbf864e84e3c8a38a253b5f7d4;hp=82dc0e7da02c4b8b6d9e75806848298fd499dcd2;hpb=2be704e885f3282777f0a1677669c9f71f60ac15;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 82dc0e7..b844b58 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -767,9 +767,9 @@ function team($, teamName) { if (template === undefined) { // Fall back to generic template if there is no team-specific one - var node = $("#mkwsTemplate" + name + ".mkwsTeam_" + m_teamName) + var node = $(".mkwsTemplate_" + name + ".mkwsTeam_" + m_teamName) if (!node.length) { - node = $("#mkwsTemplate" + name + ".mkwsTeam_ALL") + node = $(".mkwsTemplate_" + name + ".mkwsTeam_ALL") } var source = node.html(); @@ -1401,6 +1401,7 @@ function team($, teamName) { // Find all nodes with an class, and determine their team from // the mkwsTeam_* class. Make all team objects. + var then = $.now(); $('[class^="mkws"],[class*=" mkws"]').each(function () { var node = this; mkws.handle_node_with_team(node, function(tname) { @@ -1410,6 +1411,8 @@ function team($, teamName) { } }); }); + var now = $.now(); + debug("Walking MKWS nodes took " + (now-then) + " ms"); if (mkws_config.use_service_proxy) { authenticate_session(mkws_config.service_proxy_auth,