From: Mike Taylor Date: Wed, 2 Apr 2014 15:40:04 +0000 (+0100) Subject: Accept and pass through "limit" argument from auto-widgets. X-Git-Tag: 1.0.0~1090 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=7a018885efffed677584ad7d5e849f764fb241b1;p=mkws-moved-to-github.git Accept and pass through "limit" argument from auto-widgets. --- diff --git a/src/mkws-widgets.js b/src/mkws-widgets.js index 17ecdab..1e01385 100644 --- a/src/mkws-widgets.js +++ b/src/mkws-widgets.js @@ -287,17 +287,19 @@ mkws.registerWidgetType('Records', function() { this.team.queue("ready").subscribe(function() { var sortOrder = that.config.sort; var perpage = that.config.perpage; + var limit = that.config.limit; var targets = that.config.targets; var torusquery = that.config.torusquery; that.log("torusquery='" + torusquery + "'"); var s = "running auto search: '" + query + "'"; if (sortOrder) s += " sorted by '" + sortOrder + "'"; if (perpage) s += " with " + perpage + " per page"; + if (limit) s += " limited by '" + limit + "'"; if (targets) s += " in targets '" + targets + "'"; - if (torusquery) s += " limited by torusquery '" + torusquery + "'"; + if (torusquery) s += " constrained by torusquery '" + torusquery + "'"; that.log(s); - that.team.newSearch(query, sortOrder, perpage, targets, torusquery); + that.team.newSearch(query, sortOrder, perpage, limit, targets, torusquery); }); } });