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:
0d3b289
)
Implement filterSet.targetFiltered function
author
Mike Taylor
<mike@indexdata.com>
Wed, 23 Apr 2014 14:05:55 +0000
(15:05 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 23 Apr 2014 14:05:55 +0000
(15:05 +0100)
src/mkws-filter.js
patch
|
blob
|
history
diff --git
a/src/mkws-filter.js
b/src/mkws-filter.js
index
232d0d5
..
290b0d0
100644
(file)
--- a/
src/mkws-filter.js
+++ b/
src/mkws-filter.js
@@
-25,6
+25,16
@@
function filterSet() {
m_list = newList;
};
+ that.targetFiltered = function(id) {
+ for (var i = 0; i < m_list.length; i++) {
+ if (m_list[i].id === id ||
+ m_list[i].id === 'pz:id=' + id) {
+ return true;
+ }
+ }
+ return false;
+ }
+
return that;
}