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

@@ -3,8 +3,9 @@
3.4.1.0 (not yet released) 3.4.1.0 (not yet released)
- bug #3301108 [interface] Synchronize and already configured host - bug #3301108 [interface] Synchronize and already configured host
- Bug #3302457 Inline edit and $cfg['PropertiesIconic'] - bug #3302457 Inline edit and $cfg['PropertiesIconic']
- Patch #3302313 Show a translated label - Patch #3302313 Show a translated label
- bug #3300981 [navi] Table filter is case sensitive
3.4.0.0 (2011-05-11) 3.4.0.0 (2011-05-11)
+ rfe #2890226 [view] Enable VIEW rename + rfe #2890226 [view] Enable VIEW rename

View File

@@ -145,9 +145,11 @@ function PMA_setCookie(name, value, expires, path, domain, secure) {
* *
*/ */
function fast_filter(value){ function fast_filter(value){
lowercase_value = value.toLowerCase();
$("#subel0 a[class!='tableicon']").each(function(idx,elem){ $("#subel0 a[class!='tableicon']").each(function(idx,elem){
$elem = $(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(); $elem.parent().hide();
} else { } else {
$elem.parent().show(); $elem.parent().show();