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:
8c49433
)
Switch on filter type, not presence of "id" field.
author
Mike Taylor
<mike@indexdata.com>
Thu, 24 Apr 2014 10:26:03 +0000
(11:26 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 24 Apr 2014 10:26:03 +0000
(11:26 +0100)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
2e24854
..
d99370d
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-193,7
+193,7
@@
function team($, teamName) {
that.delimitTarget = function(id) {
log("delimitTarget(id=" + id + ")");
that.delimitTarget = function(id) {
log("delimitTarget(id=" + id + ")");
- m_filterSet.removeMatching(function(f) { return f.id });
+ m_filterSet.removeMatching(function(f) { return f.type === 'target' });
triggerSearch();
return false;
};
triggerSearch();
return false;
};
@@
-201,7
+201,8
@@
function team($, teamName) {
that.delimitQuery = function(field, value) {
log("delimitQuery(field=" + field + ", value=" + value + ")");
that.delimitQuery = function(field, value) {
log("delimitQuery(field=" + field + ", value=" + value + ")");
- m_filterSet.removeMatching(function(f) { return f.field && field == f.field && value == f.value });
+ m_filterSet.removeMatching(function(f) { return f.type == 'field' &&
+ field == f.field && value == f.value });
triggerSearch();
return false;
};
triggerSearch();
return false;
};