X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=13886d97bb9fca7e984ee2b84c63dd7db081e104;hb=05f1c6a6f3be9b37f6d117016682cfcb0f11459d;hp=92e1340dc4414f9a33827a364c481fb7983683d5;hpb=05b3feee2f6f96ebe32f5c4bcc84b04f9fee559b;p=mkdru-moved-to-drupal.org.git
diff --git a/mkdru.theme.js b/mkdru.theme.js
index 92e1340..13886d9 100644
--- a/mkdru.theme.js
+++ b/mkdru.theme.js
@@ -110,26 +110,30 @@ Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) {
+ clients + Drupal.t(' targets');
};
-Drupal.theme.prototype.mkdruFacet = function (terms, facet, max) {
+Drupal.theme.prototype.mkdruFacet = function (terms, facet, max, selections) {
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 + if (terms.length == 0 && selections && selections.length) { + for (var i=0; i