Open GoogleCodeExporter opened 9 years ago
I found a solution for my request and wrote my own search method for exact
multi word searching in the title fields:
$.expr[':'].jstree_exact_title_multi = function(a,i,m){
var word, words = [];
var searchFor = m[3].toLowerCase().replace(/^\s+/g,'').replace(/\s+$/g,'');
if(searchFor.indexOf(' ') >= 0) {
words = searchFor.split(' ');
}
else {
words = [searchFor];
}
for (var i=0; i < words.length; i++) {
word = words[i];
if((a.getAttribute("title") || "").toLowerCase() == word ) {
return true;
}
}
return false;
};
Original comment by clara.se...@gmail.com
on 3 Sep 2013 at 9:30
Original issue reported on code.google.com by
clara.se...@gmail.com
on 29 Aug 2013 at 2:06