mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2595 from jeancarl/dev
Filter list of nodes on node type
This commit is contained in:
commit
914cfdbc55
@ -56,7 +56,7 @@
|
||||
search.searchBox("count","");
|
||||
} else {
|
||||
var count = dirList.treeList("filter", function(item) {
|
||||
return item.label.indexOf(val) > -1
|
||||
return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1
|
||||
});
|
||||
search.searchBox("count",count+" / "+candidateNodes.length);
|
||||
}
|
||||
|
@ -71,7 +71,7 @@
|
||||
search.searchBox("count","");
|
||||
} else {
|
||||
var count = dirList.treeList("filter", function(item) {
|
||||
return item.label.indexOf(val) > -1
|
||||
return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1
|
||||
});
|
||||
search.searchBox("count",count+" / "+candidateNodes.length);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@
|
||||
search.searchBox("count","");
|
||||
} else {
|
||||
var count = dirList.treeList("filter", function(item) {
|
||||
return item.label.indexOf(val) > -1
|
||||
return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1
|
||||
});
|
||||
search.searchBox("count",count+" / "+candidateNodes.length);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@
|
||||
search.searchBox("count","");
|
||||
} else {
|
||||
var count = treeList.treeList("filter", function(item) {
|
||||
return item.label.indexOf(val) > -1
|
||||
return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1
|
||||
});
|
||||
search.searchBox("count",count+" / "+candidateNodes.length);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user