Avoid recreating a jQuery object

Remove tab characters
This commit is contained in:
Marc Delisle
2010-12-15 13:26:33 -05:00
parent 3b7a23ca21
commit 92008fc9b1
4 changed files with 34 additions and 30 deletions

View File

@@ -146,8 +146,12 @@ function PMA_setCookie(name, value, expires, path, domain, secure) {
*/ */
function fast_filter(value){ function fast_filter(value){
$("#subel0 a[class!='tableicon']").each(function(idx,elem){ $("#subel0 a[class!='tableicon']").each(function(idx,elem){
if(value && $(elem).html().indexOf(value)==-1) $(elem).parent().hide(); $elem = $(elem);
else $(elem).parent().show(); if (value && $elem.html().indexOf(value) == -1) {
$elem.parent().hide();
} else {
$elem.parent().show();
}
}); });
} }