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();
}
});
}
/**

View File

@@ -290,7 +290,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
?>
<span id="NavFilter">
<span id="clear_fast_filter" title="<?php echo __('Clear'); ?>">X</span>
<input type="text" name="fast_filter" id="fast_filter" title="<?php echo __('Filter'); ?>" value="<?php echo __('filter tables by name'); ?>" />
<input type="text" name="fast_filter" id="fast_filter" title="<?php echo __('Filter'); ?>" value="<?php echo __('filter tables by name'); ?>" />
</span>
<?php
}

View File

@@ -1394,24 +1394,24 @@ table#serverconnection_trg_local {
}
#NavFilter {
display: none;
display: none;
}
#clear_fast_filter {
background: white;
color: black;
cursor: pointer;
padding: 0;
margin: 3px 5px 0 -23px;
position: relative;
float: right;
background: white;
color: black;
cursor: pointer;
padding: 0;
margin: 3px 5px 0 -23px;
position: relative;
float: right;
}
#fast_filter {
width: 100%;
padding:2px 0px;
margin:0;
border:0;
width: 100%;
padding:2px 0px;
margin:0;
border:0;
}
/**
* Validation error message styles

View File

@@ -239,22 +239,22 @@ div#left_tableList ul ul {
}
#NavFilter {
display: none;
display: none;
}
#clear_fast_filter {
background: white;
color: black;
cursor: pointer;
padding: 0;
margin: 3px 5px 0 -23px;
position: relative;
float: right;
background: white;
color: black;
cursor: pointer;
padding: 0;
margin: 3px 5px 0 -23px;
position: relative;
float: right;
}
#fast_filter {
width: 100%;
padding:2px 0px;
margin:0;
border:0;
width: 100%;
padding:2px 0px;
margin:0;
border:0;
}