X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=mkdru.theme.js;h=bcf9de9040c995f1e5b62c3cba0f5607ef7f89b2;hb=be97579a24b75983d1ba3069d9ca38cf87702a0b;hp=92e1340dc4414f9a33827a364c481fb7983683d5;hpb=ae2619caecfb844e4e1792705780bbc87d294bff;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.theme.js b/mkdru.theme.js index 92e1340..bcf9de9 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -113,21 +113,16 @@ Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) { Drupal.theme.prototype.mkdruFacet = function (terms, facet, max) { var html = ""; for (var i = 0; i < terms.length && i < max; i++ ) { - html += '' + terms[i].name + ' (' + terms[i].freq + ')
'; - } - return html; -}; + var term = terms[i]; + html += '
'; -Drupal.theme.prototype.mkdruFacetLimit = function (term, link) { - if (term) { - return '

' + Drupal.t('Only displaying ') + term.name + '

' - + '

' + Drupal.t('Show all...') + '

'; } + return html; }; Drupal.theme.prototype.mkdruFacetContainer = function (facets, facetCfg) {