112_Restructure_CompensationAction #115

Merged
mpeltriaux merged 12 commits from 112_Restructure_CompensationAction into master 2022-02-16 08:32:07 +01:00
Showing only changes of commit 91185ef847 - Show all commits

View File

@ -41,7 +41,11 @@
var elem = $(this);
var val = elem.val()
var allTreeElements = $(".tree-element")
var allTreeElementsContain = $(".tree-element:contains(" + val + ")")
var allTreeElementsContain = $(".tree-element").filter(function(){
var reg = new RegExp(val, "i");
return reg.test($(this).text());
}
);
if(val.length > 0){
allTreeElements.hide()
allTreeElementsContain.show()