From f0ef3dcb4c4b1441fab429d211d952dc00ea34eb Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Thu, 3 Mar 2011 11:12:25 +0100 Subject: [PATCH] Only include filter in search if not empty --- mkdru.client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkdru.client.js b/mkdru.client.js index e985d42..a80a58d 100644 --- a/mkdru.client.js +++ b/mkdru.client.js @@ -330,7 +330,8 @@ mkdru.search = function () { var limits = mkdru.state['limit_' + facet].split(/;+/); for (var i = 0; i < limits.length; i++) { // ex. query + and au="{limit_author}" - query += ' and ' + mkdru.facets[facet]['limiter'] + '="' + if (limits[i]) + query += ' and ' + mkdru.facets[facet]['limiter'] + '="' + limits[i] + '"'; } } -- 1.7.10.4