Template nodes are found using widgetNode.
authorMike Taylor <mike@indexdata.com>
Wed, 16 Apr 2014 11:10:49 +0000 (12:10 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 16 Apr 2014 11:11:00 +0000 (12:11 +0100)
src/mkws-team.js

index 38b8507..f956e55 100644 (file)
@@ -641,9 +641,9 @@ function team($, teamName) {
 
        if (template === undefined) {
            // Fall back to generic template if there is no team-specific one
-           var node = findnode(".mkwsTemplate_" + name);
+           var node = widgetNode("Template_" + name);
            if (!node.length) {
-               node = findnode(".mkwsTemplate_" + name, "ALL");
+               node = widgetNode("Template_" + name, "ALL");
            }
 
            var source = node.html();