projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b557f1
)
Look for templates by class instead of as widgets
author
Jason Skomorowski
<jason@indexdata.com>
Mon, 19 May 2014 23:00:54 +0000
(19:00 -0400)
committer
Jason Skomorowski
<jason@indexdata.com>
Mon, 19 May 2014 23:00:54 +0000
(19:00 -0400)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
71c063c
..
519fd7e
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-383,9
+383,9
@@
function team($, teamName) {
if (template === undefined) {
// Fall back to generic template if there is no team-specific one
var source;
- var node = widgetNode("Template_" + name);
- if (!node) {
- node = widgetNode("Template_" + name, "ALL");
+ var node = $(".mkwsTemplate_" + name + " .mkwsTeam_" + that.name());
+ if (node && node.length < 1) {
+ node = $(".mkwsTemplate_" + name);
}
if (node) {
source = node.html();