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

@@ -141,14 +141,18 @@ function PMA_setCookie(name, value, expires, path, domain, secure) {
/**
* hide all LI elements with second A tag which doesn`t contain requested value
*
* @param string value requested value
* @param string value requested value
*
*/
function fast_filter(value){
$("#subel0 a[class!='tableicon']").each(function(idx,elem){
if(value && $(elem).html().indexOf(value)==-1) $(elem).parent().hide();
else $(elem).parent().show();
});
$("#subel0 a[class!='tableicon']").each(function(idx,elem){
$elem = $(elem);
if (value && $elem.html().indexOf(value) == -1) {
$elem.parent().hide();
} else {
$elem.parent().show();
}
});
}
/**