X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=ebbc45b0df5bfdc390753911d323664aa5546007;hb=08e153dd69ff1fa4cede7728de22dfde799ab513;hp=09226c128958280956aa9cf4b2c1447fbe7d3b52;hpb=7126e0764b58694e9da39a63c4960c70116a011e;p=mkdru-moved-to-drupal.org.git
diff --git a/mkdru.theme.js b/mkdru.theme.js
index 09226c1..ebbc45b 100644
--- a/mkdru.theme.js
+++ b/mkdru.theme.js
@@ -110,7 +110,7 @@ Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) {
+ clients + Drupal.t(' targets');
};
-Drupal.theme.prototype.mkdruFacet = function (terms, facet, max) {
+Drupal.theme.prototype.mkdruFacet = function (terms, facet, max, selections) {
var html = "";
for (var i = 0; i < terms.length && i < max; i++ ) {
var term = terms[i];
@@ -122,12 +122,12 @@ Drupal.theme.prototype.mkdruFacet = function (terms, facet, max) {
+ ')
';
}
//TODO, meed to look up target name from ID
- var sel = selections[facet];
- if (terms.length == 0 && sel && sel.length) {
- for (var i=0; i'+sel[i]+' (0)
';
+ if (terms.length == 0 && selections && selections.length) {
+ for (var i=0; i'+selections[i]+' (0)
';
}
}
}