From f9b5246a0c7d41d766d4978ac29c90128dc57948 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 1 Apr 2014 16:12:38 +0100 Subject: [PATCH] Auto-search uses perpage configuration item. --- src/mkws-widgets.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mkws-widgets.js b/src/mkws-widgets.js index 19789bd..da20ce5 100644 --- a/src/mkws-widgets.js +++ b/src/mkws-widgets.js @@ -287,13 +287,15 @@ mkws.registerWidgetType('Records', function() { this.team.queue("ready").subscribe(function() { var sortOrder = that.config.sort; + var perpage = that.config.perpage; var targets = that.config.targets; var s = "running auto search: '" + query + "'"; if (sortOrder) s += " sorted by '" + sortOrder + "'"; + if (perpage) s += " with " + perpage + " per page"; if (targets) s += " in targets '" + targets + "'"; that.log(s); - that.team.newSearch(query, sortOrder, targets); + that.team.newSearch(query, sortOrder, perpage, targets); }); } }); -- 1.7.10.4