From 92008fc9b1677fada4c41bc89dc5a29e6f584684 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 15 Dec 2010 13:26:33 -0500 Subject: [PATCH] Avoid recreating a jQuery object Remove tab characters --- js/navigation.js | 14 +++++++---- navigation.php | 2 +- .../darkblue_orange/css/theme_right.css.php | 24 +++++++++---------- themes/original/css/theme_left.css.php | 24 +++++++++---------- 4 files changed, 34 insertions(+), 30 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index 6fd08b3f7..ed6dcb104 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -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(); + } + }); } /** diff --git a/navigation.php b/navigation.php index db15e17c0..fdb65028a 100644 --- a/navigation.php +++ b/navigation.php @@ -290,7 +290,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) { ?> X - +