Feature #22985 » tree.js.patch
typo3/js/tree.js (working copy) | ||
---|---|---|
*/
|
||
filter: function() {
|
||
var searchString = $F(this.field).toLowerCase();
|
||
var isUID = !isNaN(searchString);
|
||
var pages = $$('#treeRoot .dragTitle a');
|
||
var pages = $$('#treeRoot .dragTitle a');
|
||
pages.each(function(el) {
|
||
if (el.innerHTML.toLowerCase().include(searchString)) {
|
||
el.up().removeClassName('not-found');
|
||
if (isUID) {
|
||
if (el.up().identify().indexOf(searchString) != -1) {
|
||
el.up().removeClassName('not-found');
|
||
} else {
|
||
el.up().addClassName('not-found');
|
||
}
|
||
} else {
|
||
el.up().addClassName('not-found');
|
||
if (el.innerHTML.toLowerCase().include(searchString)) {
|
||
el.up().removeClassName('not-found');
|
||
} else {
|
||
el.up().addClassName('not-found');
|
||
}
|
||
}
|
||
});
|
||
this.toggleReset();
|
||
},
|
||
/**
|