From 3b7a23ca21988099e4f1a5e4d1832dfc4540e4fa Mon Sep 17 00:00:00 2001 From: dylfin Date: Wed, 15 Dec 2010 13:16:28 -0500 Subject: [PATCH] Fix clear button Script was adapted to use jquery Fix input box for all browsers --- js/navigation.js | 30 +++---------------- navigation.php | 2 +- .../darkblue_orange/css/theme_right.css.php | 22 +++++++------- themes/original/css/theme_left.css.php | 22 +++++++------- 4 files changed, 29 insertions(+), 47 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index 280117faf..6fd08b3f7 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -145,32 +145,10 @@ function PMA_setCookie(name, value, expires, path, domain, secure) { * */ function fast_filter(value){ - var oTarget = document.getElementById("subel0"); - if(!oTarget || !document.getElementById('fast_filter')) return false; - if(value!=document.getElementById('fast_filter').value) return false; - 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; + $("#subel0 a[class!='tableicon']").each(function(idx,elem){ + if(value && $(elem).html().indexOf(value)==-1) $(elem).parent().hide(); + else $(elem).parent().show(); + }); } /** diff --git a/navigation.php b/navigation.php index d312a0c0a..db15e17c0 100644 --- a/navigation.php +++ b/navigation.php @@ -289,8 +289,8 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) { if ($table_count >= $GLOBALS['cfg']['LeftDisplayTableFilterMinimum']) { ?> - X +