projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove pp2limit regression-testing scaffold.
[mkws-moved-to-github.git]
/
src
/
mkws-filter.js
diff --git
a/src/mkws-filter.js
b/src/mkws-filter.js
index
4d600cc
..
f19edcb
100644
(file)
--- a/
src/mkws-filter.js
+++ b/
src/mkws-filter.js
@@
-72,30
+72,13
@@
function filterSet(team) {
};
that.pp2limit = function(initial) {
};
that.pp2limit = function(initial) {
- var OLD = that.OLD_pp2limit(initial);
- var NEW = that.NEW_pp2limit(initial);
- if (OLD !== NEW) {
- alert("pp2limit(): OLD[" + OLD + "] !== NEW[" + NEW + "]");
- }
- return OLD;
- };
-
- that.OLD_pp2limit = function(initial) {
var res = initial || "";
var res = initial || "";
- for (var i in m_list) {
- var filter = m_list[i];
- if (!filter.id) {
- if (res) res += ",";
- res += filter.field + "=" + filter.value.replace(/[\\|,]/g, '\\$&');
- }
- }
-
+ that.visitFields(function(field, value) {
+ if (res) res += ",";
+ res += field + "=" + value.replace(/[\\|,]/g, '\\$&');
+ });
return res;
return res;
- };
-
- that.NEW_pp2limit = function(initial) {
- return that.OLD_pp2limit(initial);
}
return that;
}
return that;