From: Mike Taylor Date: Tue, 1 Apr 2014 15:12:38 +0000 (+0100) Subject: Auto-search uses perpage configuration item. X-Git-Tag: 1.0.0~1102 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=f9b5246a0c7d41d766d4978ac29c90128dc57948;p=mkws-moved-to-github.git Auto-search uses perpage configuration item. --- 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); }); } });