jsdialog: TreeView case insensitive filtering

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If4a9524e4ce97896e40d920ac87ef103175911f6
This commit is contained in:
Szymon Kłos 2022-12-14 15:40:06 +01:00 committed by Szymon Kłos
parent 6346bdc42e
commit ad3db4797d

View file

@ -306,7 +306,8 @@ function _treelistboxControl(parentContainer, data, builder) {
console.error(toHide);
for (var i in cells) {
if (cells[i].innerText && cells[i].innerText.indexOf(filter) >= 0)
var entryText = cells[i].innerText;
if (entryText && entryText.toLowerCase().indexOf(filter.toLowerCase()) >= 0)
toHide = false;
}