From: Mike Taylor Date: Mon, 6 Jan 2014 17:29:26 +0000 (+0000) Subject: Towards sending windowid X-Git-Tag: 1.0.0~1742 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=44f9694f200809e6c5cd7811988aa8e97c5917ac;p=mkws-moved-to-github.git Towards sending windowid --- 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 ()