Fix clear button
Script was adapted to use jquery Fix input box for all browsers
This commit is contained in:
@@ -145,32 +145,10 @@ function PMA_setCookie(name, value, expires, path, domain, secure) {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function fast_filter(value){
|
function fast_filter(value){
|
||||||
var oTarget = document.getElementById("subel0");
|
$("#subel0 a[class!='tableicon']").each(function(idx,elem){
|
||||||
if(!oTarget || !document.getElementById('fast_filter')) return false;
|
if(value && $(elem).html().indexOf(value)==-1) $(elem).parent().hide();
|
||||||
if(value!=document.getElementById('fast_filter').value) return false;
|
else $(elem).parent().show();
|
||||||
document.getElementById('fast_filter').disabled=true;
|
});
|
||||||
for(var iCh in oTarget.childNodes){
|
|
||||||
var oCh = oTarget.childNodes.item(iCh);
|
|
||||||
if(!oCh) continue;
|
|
||||||
if(oCh.nodeName=="LI"){
|
|
||||||
if(value=="") oCh.style.display="";
|
|
||||||
else{
|
|
||||||
var i=0;
|
|
||||||
for(var iA in oCh.childNodes){
|
|
||||||
var oA = oCh.childNodes.item(iA);
|
|
||||||
if(!oA) continue;
|
|
||||||
if(oA.nodeName=="A"){
|
|
||||||
if(i==0) i = 1;
|
|
||||||
else{
|
|
||||||
if(oA.innerHTML.indexOf(value)==-1) oCh.style.display="none";
|
|
||||||
else oCh.style.display="";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
document.getElementById('fast_filter').disabled=false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -289,8 +289,8 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
|
|||||||
if ($table_count >= $GLOBALS['cfg']['LeftDisplayTableFilterMinimum']) {
|
if ($table_count >= $GLOBALS['cfg']['LeftDisplayTableFilterMinimum']) {
|
||||||
?>
|
?>
|
||||||
<span id="NavFilter">
|
<span id="NavFilter">
|
||||||
<input type="text" name="fast_filter" id="fast_filter" title="<?php echo __('Filter'); ?>" value="<?php echo __('filter tables by name'); ?>" />
|
|
||||||
<span id="clear_fast_filter" title="<?php echo __('Clear'); ?>">X</span>
|
<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'); ?>" />
|
||||||
</span>
|
</span>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@@ -1394,22 +1394,24 @@ table#serverconnection_trg_local {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#NavFilter {
|
#NavFilter {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clear_fast_filter {
|
#clear_fast_filter {
|
||||||
background: white;
|
background: white;
|
||||||
color: black;
|
color: black;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 3px 5px 0 -23px;
|
||||||
position: relative;
|
position: relative;
|
||||||
right: 3ex;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
#fast_filter {
|
#fast_filter {
|
||||||
width: 85%;
|
width: 100%;
|
||||||
padding: 0.1em;
|
padding:2px 0px;
|
||||||
|
margin:0;
|
||||||
|
border:0;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Validation error message styles
|
* Validation error message styles
|
||||||
|
@@ -239,20 +239,22 @@ div#left_tableList ul ul {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#NavFilter {
|
#NavFilter {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clear_fast_filter {
|
#clear_fast_filter {
|
||||||
background: white;
|
background: white;
|
||||||
color: black;
|
color: black;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 3px 5px 0 -23px;
|
||||||
position: relative;
|
position: relative;
|
||||||
right: 3ex;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
#fast_filter {
|
#fast_filter {
|
||||||
width: 85%;
|
width: 100%;
|
||||||
padding: 0.1em;
|
padding:2px 0px;
|
||||||
|
margin:0;
|
||||||
|
border:0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user