From: Jason Skomorowski Date: Wed, 2 Mar 2011 08:54:14 +0000 (+0100) Subject: Towards a theme for generalised facet limits. X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=fb9b420a79595a160623548f58f3ceef0012e944;p=mkdru-moved-to-drupal.org.git Towards a theme for generalised facet limits. --- diff --git a/mkdru.theme.js b/mkdru.theme.js index 875d0f3..745106e 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -113,26 +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 += Drupal.theme('mkdruFacetTerm', terms[i], facet); + html += '' + terms[i].name + ' (' + terms[i].freq + ')
'; } return html; }; -Drupal.theme.prototype.mkdruFacetTerm = function (term, facet) { - var html = '' + term.name + ' (' + term.freq + ')
'; - return html; -}; - Drupal.theme.prototype.mkdruFacetLimit = function (term, link) { if (term) { return '

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

'