From e049a44f5964ea4fbc6f447ab2808964b03c268d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 2 Apr 2010 13:33:12 +0200 Subject: [PATCH] Move input event binding to separate js file. --- js/navigation.js | 2 ++ navigation.php | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/js/navigation.js b/js/navigation.js index 33f335c42..22afbb6cf 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -188,4 +188,6 @@ jQuery(document).ready(function(){ /* Display filter */ jQuery('#NavFilter').css('display', 'inline'); jQuery('#clear_fast_filter').click(clear_fast_filter); + jQuery('#fast_filter').focus(function (evt) {evt.target.select();}); + jQuery('#fast_filter').keyup(function (evt) {fast_filter(evt.target.value);}); }); diff --git a/navigation.php b/navigation.php index f3665cff4..5f544e733 100644 --- a/navigation.php +++ b/navigation.php @@ -317,10 +317,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) { if ($table_count) { ?> - + X