From: Mike Taylor Date: Thu, 23 Jan 2014 15:08:57 +0000 (+0000) Subject: global mkws.query moved to team-specific m_query X-Git-Tag: 1.0.0~1648 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=780fda117bcf68e87e115de599018babdfa30936;p=mkws-moved-to-github.git global mkws.query moved to team-specific m_query --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 9893577..f632a57 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -273,6 +273,7 @@ function _make_mkws_team($, teamName) { var SourceMax = 16; var SubjectMax = 10; var AuthorMax = 10; + var m_query; // initially undefined if (!isNaN(parseInt(mkws_config.perpage_default))) { recPerPage = parseInt(mkws_config.perpage_default); @@ -491,7 +492,7 @@ function _make_mkws_team($, teamName) { // Re-use previous query/sort if new ones are not specified if (query) { - mkws.query = query; + m_query = query; } if (sort) { m_sort = sort; @@ -526,9 +527,9 @@ function _make_mkws_team($, teamName) { if (windowid) { params.windowid = windowid; } - debug("triggerSearch(" + mkws.query + "): filters = " + $.toJSON(m_filters) + ", pp2filter = " + pp2filter + ", params = " + $.toJSON(params)); + debug("triggerSearch(" + m_query + "): filters = " + $.toJSON(m_filters) + ", pp2filter = " + pp2filter + ", params = " + $.toJSON(params)); - m_paz.search(mkws.query, recPerPage, m_sort, pp2filter, undefined, params); + m_paz.search(m_query, recPerPage, m_sort, pp2filter, undefined, params); } function loadSelect ()