X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=034b4033c50969a7a93d099c4eb248b40d3c62e0;hb=f95e7a4268e7e62fe1ba36b120e0b58108d4c5a6;hp=c919ffdcfcd31e63b359143e37cfa4272d102b22;hpb=ea534b6c82e40166d3fb586f0d4868e5db5ea5f5;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.theme.js b/mkdru.theme.js index c919ffd..034b403 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -117,20 +117,24 @@ 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]; - html += '
'; } - //TODO, meed to look up target name from ID if (terms.length == 0 && selections && selections.length) { for (var i=0; i'+selections[i]+'
(0)
'; + + '">'+name+' (0)
'; } } }