From 829a7d81469c64d7b01260738698f0a76b553493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 2 Apr 2010 13:30:01 +0200 Subject: [PATCH] Bind clear event in javascript. --- js/navigation.js | 1 + navigation.php | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index 113f16944..33f335c42 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -187,4 +187,5 @@ function clear_fast_filter() { jQuery(document).ready(function(){ /* Display filter */ jQuery('#NavFilter').css('display', 'inline'); + jQuery('#clear_fast_filter').click(clear_fast_filter); }); diff --git a/navigation.php b/navigation.php index dceea89f3..f3665cff4 100644 --- a/navigation.php +++ b/navigation.php @@ -321,9 +321,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) { title="" onkeyup="setTimeout(function(word){ return function(){ fast_filter(word);}}(this.value),1000);" onfocus="this.select();" /> - X + X