Move input event binding to separate js file.
This commit is contained in:
@@ -188,4 +188,6 @@ 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);
|
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);});
|
||||||
});
|
});
|
||||||
|
@@ -317,10 +317,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
|
|||||||
if ($table_count) {
|
if ($table_count) {
|
||||||
?>
|
?>
|
||||||
<span id="NavFilter">
|
<span id="NavFilter">
|
||||||
<input type="text" name="fast_filter" id="fast_filter"
|
<input type="text" name="fast_filter" id="fast_filter" title="<?php echo $strNavTableFilter; ?>" />
|
||||||
title="<?php echo $strNavTableFilter; ?>"
|
|
||||||
onkeyup="setTimeout(function(word){ return function(){ fast_filter(word);}}(this.value),1000);"
|
|
||||||
onfocus="this.select();" />
|
|
||||||
<span id="clear_fast_filter" title="<?php echo $strReset; ?>">X</span>
|
<span id="clear_fast_filter" title="<?php echo $strReset; ?>">X</span>
|
||||||
</span>
|
</span>
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user