projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into prettysimple
[mkws-moved-to-github.git]
/
src
/
mkws-team.js
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
90b7391
..
43f2fbf
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-122,7
+122,7
@@
mkws.makeTeam = function($, teamName) {
function onTerm(data) {
log("term");
function onTerm(data) {
log("term");
- queue("termlists").publish(data);
+ queue("facets").publish(data);
}
function onShow(data, teamName) {
}
function onShow(data, teamName) {
@@
-172,7
+172,7
@@
mkws.makeTeam = function($, teamName) {
params.onstat = onStat;
log("setting stat callback");
}
params.onstat = onStat;
log("setting stat callback");
}
- if (m_queues.termlists && config.facets.length) {
+ if (m_queues.facets && config.facets.length) {
params.onterm = onTerm;
log("setting term callback");
}
params.onterm = onTerm;
log("setting term callback");
}
@@
-408,7
+408,7
@@
mkws.makeTeam = function($, teamName) {
}
function renderDetails(data, marker) {
}
function renderDetails(data, marker) {
- var template = loadTemplate("Record");
+ var template = loadTemplate("details");
var details = template(data);
return '<div class="mkws-details mkwsDetails mkwsTeam_' + m_teamName + '" ' +
'id="' + recordDetailsId(data.recid[0]) + '">' + details + '</div>';
var details = template(data);
return '<div class="mkws-details mkwsDetails mkwsTeam_' + m_teamName + '" ' +
'id="' + recordDetailsId(data.recid[0]) + '">' + details + '</div>';
@@
-438,12
+438,6
@@
mkws.makeTeam = function($, teamName) {
if (node && node.length < 1) {
node = $(".mkws-template-" + name);
}
if (node && node.length < 1) {
node = $(".mkws-template-" + name);
}
- if (node && node.length < 1) {
- node = $(".mkws-template_" + name + " .mkws-team-" + that.name());
- }
- if (node && node.length < 1) {
- node = $(".mkws-template_" + name);
- }
if (node) source = node.html();
if (!source) source = m_templateText[name];
if (source) {
if (node) source = node.html();
if (!source) source = m_templateText[name];
if (source) {