mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Make catch/status/complete/link filter case-insensitive
This commit is contained in:
parent
091a462a42
commit
ad6b18e66f
@ -50,13 +50,13 @@
|
||||
style: "compact",
|
||||
delay: 300,
|
||||
change: function() {
|
||||
var val = $(this).val().trim();
|
||||
var val = $(this).val().trim().toLowerCase();
|
||||
if (val === "") {
|
||||
dirList.treeList("filter", null);
|
||||
search.searchBox("count","");
|
||||
} else {
|
||||
var count = dirList.treeList("filter", function(item) {
|
||||
return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1
|
||||
return item.label.toLowerCase().indexOf(val) > -1 || item.node.type.toLowerCase().indexOf(val) > -1
|
||||
});
|
||||
search.searchBox("count",count+" / "+candidateNodes.length);
|
||||
}
|
||||
|
@ -65,13 +65,13 @@
|
||||
style: "compact",
|
||||
delay: 300,
|
||||
change: function() {
|
||||
var val = $(this).val().trim();
|
||||
var val = $(this).val().trim().toLowerCase();
|
||||
if (val === "") {
|
||||
dirList.treeList("filter", null);
|
||||
search.searchBox("count","");
|
||||
} else {
|
||||
var count = dirList.treeList("filter", function(item) {
|
||||
return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1
|
||||
return item.label.toLowerCase().indexOf(val) > -1 || item.node.type.toLowerCase().indexOf(val) > -1
|
||||
});
|
||||
search.searchBox("count",count+" / "+candidateNodes.length);
|
||||
}
|
||||
|
@ -53,13 +53,13 @@
|
||||
style: "compact",
|
||||
delay: 300,
|
||||
change: function() {
|
||||
var val = $(this).val().trim();
|
||||
var val = $(this).val().trim().toLowerCase();
|
||||
if (val === "") {
|
||||
dirList.treeList("filter", null);
|
||||
search.searchBox("count","");
|
||||
} else {
|
||||
var count = dirList.treeList("filter", function(item) {
|
||||
return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1
|
||||
return item.label.toLowerCase().indexOf(val) > -1 || item.node.type.toLowerCase().indexOf(val) > -1
|
||||
});
|
||||
search.searchBox("count",count+" / "+candidateNodes.length);
|
||||
}
|
||||
|
@ -53,13 +53,13 @@
|
||||
style: "compact",
|
||||
delay: 300,
|
||||
change: function() {
|
||||
var val = $(this).val().trim();
|
||||
var val = $(this).val().trim().toLowerCase();
|
||||
if (val === "") {
|
||||
treeList.treeList("filter", null);
|
||||
search.searchBox("count","");
|
||||
} else {
|
||||
var count = treeList.treeList("filter", function(item) {
|
||||
return item.label.indexOf(val) > -1 || item.node.type.indexOf(val) > -1
|
||||
return item.label.toLowerCase().indexOf(val) > -1 || item.node.type.toLowerCase().indexOf(val) > -1
|
||||
});
|
||||
search.searchBox("count",count+" / "+candidateNodes.length);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user