112_Restructure_CompensationAction #115
@ -41,7 +41,11 @@
|
|||||||
var elem = $(this);
|
var elem = $(this);
|
||||||
var val = elem.val()
|
var val = elem.val()
|
||||||
var allTreeElements = $(".tree-element")
|
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){
|
if(val.length > 0){
|
||||||
allTreeElements.hide()
|
allTreeElements.hide()
|
||||||
allTreeElementsContain.show()
|
allTreeElementsContain.show()
|
||||||
|
Loading…
Reference in New Issue
Block a user