X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=mkdru.theme.js;h=5af43eed99464e33e8cbfe354ed1a7edf632bdb6;hb=d576c9a086d8a41794f70ae5f142768aba2de9a4;hp=13886d97bb9fca7e984ee2b84c63dd7db081e104;hpb=e8fb3fc792cfaaf25eeb92b888d9a62eb364cc32;p=mkdru-moved-to-drupal.org.git diff --git a/mkdru.theme.js b/mkdru.theme.js index 13886d9..5af43ee 100644 --- a/mkdru.theme.js +++ b/mkdru.theme.js @@ -101,8 +101,11 @@ Drupal.theme.prototype.mkdruPager = function (pages, start, current, total, prev }; Drupal.theme.prototype.mkdruCounts = function(first, last, available, total) { - return first + Drupal.t(' to ') + last + Drupal.t(' of ') + available + if (last > 0) + return first + Drupal.t(' to ') + last + Drupal.t(' of ') + available + Drupal.t(' available (') + total + Drupal.t(' found)'); + else + return Drupal.t('No results'); }; Drupal.theme.prototype.mkdruStatus = function(activeClients, clients) { @@ -114,7 +117,7 @@ Drupal.theme.prototype.mkdruFacet = function (terms, facet, max, selections) { var html = ""; for (var i = 0; i < terms.length && i < max; i++ ) { var term = terms[i]; - html += '