projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6307fd
)
Use m_filterSet.pp2limit method instead of building by hand.
author
Mike Taylor
<mike@indexdata.com>
Wed, 23 Apr 2014 14:38:31 +0000
(15:38 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 23 Apr 2014 14:38:31 +0000
(15:38 +0100)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
b3cb0c4
..
0824618
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-260,7
+260,6
@@
function team($, teamName) {
resetPage();
queue("navi").publish();
resetPage();
queue("navi").publish();
- var pp2limit = limit || "";
// Continue to use previous query/sort-order unless new ones are specified
if (query) {
// 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();
}
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) {
var params = {};
if (pp2limit) {