From: Jakub Skoczen Date: Wed, 2 Mar 2011 17:32:10 +0000 (+0100) Subject: Move from main template X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=c97cbb2a807f178df5ea6fc410c340b3bd1d6a16;p=mkdruding1.git Move from main template --- 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...') + '

'; + } +}; +