From: Mike Taylor Date: Wed, 23 Apr 2014 14:38:31 +0000 (+0100) Subject: Use m_filterSet.pp2limit method instead of building by hand. X-Git-Tag: 1.0.0~879 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=91bc6158ec7702dc5d670383abf67ecec8761030;p=mkws-moved-to-github.git Use m_filterSet.pp2limit method instead of building by hand. --- diff --git a/src/mkws-team.js b/src/mkws-team.js index b3cb0c4..0824618 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -260,7 +260,6 @@ function team($, teamName) { resetPage(); queue("navi").publish(); - var pp2limit = limit || ""; // Continue to use previous query/sort-order unless new ones are specified if (query) { @@ -277,14 +276,7 @@ function team($, teamName) { } var pp2filter = m_filterSet.pp2filter(); - for (var i in m_filterSet.list()) { - var filter = m_filterSet.list()[i]; - if (!filter.id) { - if (pp2limit) - pp2limit += ","; - pp2limit += filter.field + "=" + filter.value.replace(/[\\|,]/g, '\\$&'); - } - } + var pp2limit = m_filterSet.pp2limit(limit); var params = {}; if (pp2limit) {