Bind clear event in javascript.
This commit is contained in:
@@ -187,4 +187,5 @@ function clear_fast_filter() {
|
|||||||
jQuery(document).ready(function(){
|
jQuery(document).ready(function(){
|
||||||
/* Display filter */
|
/* Display filter */
|
||||||
jQuery('#NavFilter').css('display', 'inline');
|
jQuery('#NavFilter').css('display', 'inline');
|
||||||
|
jQuery('#clear_fast_filter').click(clear_fast_filter);
|
||||||
});
|
});
|
||||||
|
@@ -321,9 +321,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
|
|||||||
title="<?php echo $strNavTableFilter; ?>"
|
title="<?php echo $strNavTableFilter; ?>"
|
||||||
onkeyup="setTimeout(function(word){ return function(){ fast_filter(word);}}(this.value),1000);"
|
onkeyup="setTimeout(function(word){ return function(){ fast_filter(word);}}(this.value),1000);"
|
||||||
onfocus="this.select();" />
|
onfocus="this.select();" />
|
||||||
<span id="clear_fast_filter"
|
<span id="clear_fast_filter" title="<?php echo $strReset; ?>">X</span>
|
||||||
onclick="clear_fast_filter();"
|
|
||||||
title="<?php echo $strReset; ?>">X</span>
|
|
||||||
</span>
|
</span>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user