From 6f602b6777455a596f7bdd91511feefd4e5eab4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 2 Apr 2010 13:09:36 +0200 Subject: [PATCH] Move unhiding code to js file. --- js/navigation.js | 8 +++++++- navigation.php | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index 1e038ab4e..e02ccdc8b 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -171,4 +171,10 @@ function fast_filter(value){ } } document.getElementById('fast_filter').disabled=false; -} \ No newline at end of file +} + +/* Performed on load */ +jQuery(document).ready(function(){ + /* Display filter */ + jQuery('#NavFilter').css('display', 'inline'); +}); diff --git a/navigation.php b/navigation.php index 81849b0dd..8516cb032 100644 --- a/navigation.php +++ b/navigation.php @@ -326,7 +326,6 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) { onkeyup="setTimeout(function(word){ return function(){ fast_filter(word);}}(this.value),1000);" style="width:90%;padding:0 -20px 0 0; padding:2px;" onfocus="this.select();" /> -