From 7a018885efffed677584ad7d5e849f764fb241b1 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 2 Apr 2014 16:40:04 +0100 Subject: [PATCH] Accept and pass through "limit" argument from auto-widgets. --- src/mkws-widgets.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }); } }); -- 1.7.10.4