1
0
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:
Nick O'Leary 2020-06-03 18:59:57 +01:00 committed by GitHub
commit 914cfdbc55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}