From fb9b420a79595a160623548f58f3ceef0012e944 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Wed, 2 Mar 2011 09:54:14 +0100 Subject: [PATCH] Towards a theme for generalised facet limits. --- mkdru.theme.js | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) 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 + '

' -- 1.7.10.4