X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=bcf9de9040c995f1e5b62c3cba0f5607ef7f89b2;hb=be97579a24b75983d1ba3069d9ca38cf87702a0b;hp=8051e40e863d727bc7e029fd71c62193b1fa9ce0;hpb=08871a2c8216c8b9a6c39104402dc55e07df5cf3;p=mkdru-moved-to-drupal.org.git
diff --git a/mkdru.theme.js b/mkdru.theme.js
index 8051e40..bcf9de9 100644
--- a/mkdru.theme.js
+++ b/mkdru.theme.js
@@ -111,24 +111,18 @@ Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) {
};
Drupal.theme.prototype.mkdruFacet = function (terms, facet, max) {
- debugger;
var html = "";
for (var i = 0; i < terms.length && i < max; i++ ) {
- html += '' + terms[i].name + ' (' + terms[i].freq + ')
';
- }
- return html;
-};
+ var term = terms[i];
+ html += ''+terms[i].name;
+ if (term.selected) html += "";
+ html += ' (' + terms[i].freq
+ + ')
';
-Drupal.theme.prototype.mkdruFacetLimit = function (term, link) {
- if (term) {
- return '
' + Drupal.t('Only displaying ') + term.name + '
' - + ''; } + return html; }; Drupal.theme.prototype.mkdruFacetContainer = function (facets, facetCfg) {