Bind clear event in javascript.

This commit is contained in:
Michal Čihař
2010-04-02 13:30:01 +02:00
parent 0098927245
commit 829a7d8146
2 changed files with 2 additions and 3 deletions

View File

@@ -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);
});

View File

@@ -321,9 +321,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
title="<?php echo $strNavTableFilter; ?>"
onkeyup="setTimeout(function(word){ return function(){ fast_filter(word);}}(this.value),1000);"
onfocus="this.select();" />
<span id="clear_fast_filter"
onclick="clear_fast_filter();"
title="<?php echo $strReset; ?>">X</span>
<span id="clear_fast_filter" title="<?php echo $strReset; ?>">X</span>
</span>
<?php
}