Improved t: or tag: filtering.

This commit is contained in:
Ylian Saint-Hilaire
2020-01-03 14:21:39 -08:00
parent 8186c93dd9
commit fc9d364e48
4 changed files with 1413 additions and 1376 deletions

View File

@@ -3821,7 +3821,9 @@
for (var d in nodes) { nodes[d].v = (meshes[nodes[d].meshid].name.toLowerCase().indexOf(groupSearch) >= 0); }
} else if (tagSearch != null) {
// Tag filter
for (var d in nodes) { nodes[d].v = ((nodes[d].tags != null) && (nodes[d].tags.indexOf(tagSearch) >= 0)); }
for (var d in nodes) {
nodes[d].v = ((nodes[d].tags == null) && (tagSearch == '')) || ((nodes[d].tags != null) && (nodes[d].tags.indexOf(tagSearch) >= 0));
}
} else if (userSearch != null) {
// User search
for (var d in nodes) {