bug #3300981 [navi] Table filter is case sensitive

This commit is contained in:
Marc Delisle
2011-05-15 18:25:20 -04:00
parent 6923ccab3e
commit ee22340d83
2 changed files with 5 additions and 2 deletions

View File

@@ -145,9 +145,11 @@ function PMA_setCookie(name, value, expires, path, domain, secure) {
*
*/
function fast_filter(value){
lowercase_value = value.toLowerCase();
$("#subel0 a[class!='tableicon']").each(function(idx,elem){
$elem = $(elem);
if (value && $elem.html().indexOf(value) == -1) {
// .indexOf is case sensitive so convert to lowercase to compare
if (value && $elem.html().toLowerCase().indexOf(lowercase_value) == -1) {
$elem.parent().hide();
} else {
$elem.parent().show();