Project

General

Profile

Feature #22985 » tree.js.patch

Administrator Admin, 2010-06-24 13:24

View differences:

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();
},
/**
(1-1/3)