From ea534b6c82e40166d3fb586f0d4868e5db5ea5f5 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Thu, 3 Mar 2011 11:18:40 +0100 Subject: [PATCH] Report no result in a better way --- mkdru.theme.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mkdru.theme.js b/mkdru.theme.js index 13886d9..c919ffd 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) { -- 1.7.10.4