jsdialog: TreeView case insensitive filtering
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: If4a9524e4ce97896e40d920ac87ef103175911f6
This commit is contained in:
parent
6346bdc42e
commit
ad3db4797d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue