From 2114cf859f1f8471b148739f7cd930cadc4cc8c4 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Thu, 3 Mar 2011 01:47:52 +0100 Subject: [PATCH] Drop mkdruFacetLimit, extend args for mkdruFacet Append more data to the array so the template can be simpler. Both selected and available facets can now be rendered in one go. RESOLVED MERGE CONFLICTS in mkdru.css --- mkdru.client.js | 44 +++++++++++++++++++++++++++++++++++--------- mkdru.css | 10 +++++++++- mkdru.theme.js | 21 ++++++++------------- 3 files changed, 52 insertions(+), 23 deletions(-) diff --git a/mkdru.client.js b/mkdru.client.js index 9365e78..f931c3e 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -122,23 +122,49 @@ mkdru.pz2Status = function (data) { $('.mkdru-status').html(Drupal.theme('mkdruStatus', data.activeclients, data.clients)); }; +mkdru.contains = function (hash, key, value) { + if (hash[key]) { + if (hash[key].length) { + for (var i=0; i (' + 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) { -- 1.7.10.4