From c97cbb2a807f178df5ea6fc410c340b3bd1d6a16 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Wed, 2 Mar 2011 18:32:10 +0100 Subject: [PATCH] Move from main template --- mkdruding2.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/mkdruding2.js b/mkdruding2.js index 4743961..b1ed4fd 100644 --- a/mkdruding2.js +++ b/mkdruding2.js @@ -56,3 +56,24 @@ Drupal.theme.mkdruFacetContainer = function (facetsData, facetsCfg) { return html; }; +Drupal.theme.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; +}; + +Drupal.theme.mkdruFacetLimit = function (term, link) { + if (term) { + return '

' + term.name + '

' + + '

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

'; + } +}; + -- 1.7.10.4