From 44f9694f200809e6c5cd7811988aa8e97c5917ac Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 6 Jan 2014 17:29:26 +0000 Subject: [PATCH] Towards sending windowid --- tools/htdocs/mkws.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 3c43d50..ef15687 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -495,8 +495,16 @@ function triggerSearch (query, sort, targets, windowid) } } - debug("triggerSearch(" + mkws.query + "): filters = " + $.toJSON(mkws.filters) + ", pp2filter = " + pp2filter + ", pp2limit = " + pp2limit); - my_paz.search(mkws.query, recPerPage, mkws.sort, pp2filter, undefined, { limit: pp2limit }); + var params = {}; + if (pp2limit) { + params.limit = pp2limit; + } + if (windowid) { + params.windowid = windowid; + } + debug("triggerSearch(" + mkws.query + "): filters = " + $.toJSON(mkws.filters) + ", pp2filter = " + pp2filter + ", params = " + $.toJSON(params)); + + my_paz.search(mkws.query, recPerPage, mkws.sort, pp2filter, undefined, params); } function loadSelect () -- 1.7.10.4