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:
9186abc
)
All limit/delimit invocations of triggerSearch fire only if there's a query.
author
Mike Taylor
<mike@indexdata.com>
Thu, 24 Apr 2014 10:35:55 +0000
(11:35 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 24 Apr 2014 10:35:55 +0000
(11:35 +0100)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
4c59bec
..
7a9015e
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-170,7
+170,7
@@
function team($, teamName) {
that.limitTarget = function(id, name) {
log("limitTarget(id=" + id + ", name=" + name + ")");
m_filterSet.add(targetFilter(id, name));
that.limitTarget = function(id, name) {
log("limitTarget(id=" + id + ", name=" + name + ")");
m_filterSet.add(targetFilter(id, name));
- triggerSearch();
+ if (m_query) triggerSearch();
return false;
};
return false;
};
@@
-178,7
+178,7
@@
function team($, teamName) {
that.limitQuery = function(field, value) {
log("limitQuery(field=" + field + ", value=" + value + ")");
m_filterSet.add(fieldFilter(field, value));
that.limitQuery = function(field, value) {
log("limitQuery(field=" + field + ", value=" + value + ")");
m_filterSet.add(fieldFilter(field, value));
- triggerSearch();
+ if (m_query) triggerSearch();
return false;
};
return false;
};
@@
-194,7
+194,7
@@
function team($, teamName) {
that.delimitTarget = function(id) {
log("delimitTarget(id=" + id + ")");
m_filterSet.removeMatching(function(f) { return f.type === 'target' });
that.delimitTarget = function(id) {
log("delimitTarget(id=" + id + ")");
m_filterSet.removeMatching(function(f) { return f.type === 'target' });
- triggerSearch();
+ if (m_query) triggerSearch();
return false;
};
return false;
};
@@
-203,7
+203,7
@@
function team($, teamName) {
log("delimitQuery(field=" + field + ", value=" + value + ")");
m_filterSet.removeMatching(function(f) { return f.type == 'field' &&
field == f.field && value == f.value });
log("delimitQuery(field=" + field + ", value=" + value + ")");
m_filterSet.removeMatching(function(f) { return f.type == 'field' &&
field == f.field && value == f.value });
- triggerSearch();
+ if (m_query) triggerSearch();
return false;
};
return false;
};