X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=09226c128958280956aa9cf4b2c1447fbe7d3b52;hb=7126e0764b58694e9da39a63c4960c70116a011e;hp=92e1340dc4414f9a33827a364c481fb7983683d5;hpb=05b3feee2f6f96ebe32f5c4bcc84b04f9fee559b;p=mkdru-moved-to-drupal.org.git
diff --git a/mkdru.theme.js b/mkdru.theme.js
index 92e1340..09226c1 100644
--- a/mkdru.theme.js
+++ b/mkdru.theme.js
@@ -113,21 +113,25 @@ 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 += '' + terms[i].name + ' (' + terms[i].freq + ')
';
+ var term = terms[i];
+ html += ''+terms[i].name;
+ if (term.selected) html += "";
+ html += ' (' + terms[i].freq
+ + ')
';
}
- return html;
-};
-
-Drupal.theme.prototype.mkdruFacetLimit = function (term, link) {
- if (term) {
- return '
' + Drupal.t('Only displaying ') + term.name + '
' - + '' + Drupal.t('Show all...') + '
'; + //TODO, meed to look up target name from ID + var sel = selections[facet]; + if (terms.length == 0 && sel && sel.length) { + for (var i=0; i