Separate function for clearing input.
This commit is contained in:
@@ -173,6 +173,16 @@ function fast_filter(value){
|
||||
document.getElementById('fast_filter').disabled=false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears fast filter.
|
||||
*/
|
||||
function clear_fast_filter() {
|
||||
var elm = jQuery('#NavFilter input');
|
||||
elm.val('');
|
||||
fast_filter('');
|
||||
elm.focus();
|
||||
}
|
||||
|
||||
/* Performed on load */
|
||||
jQuery(document).ready(function(){
|
||||
/* Display filter */
|
||||
|
@@ -318,7 +318,7 @@ if ($GLOBALS['cfg']['LeftFrameLight'] && strlen($GLOBALS['db'])) {
|
||||
?>
|
||||
<span id="NavFilter" style="display:none;">
|
||||
<span
|
||||
onclick="document.getElementById('fast_filter').value=''; fast_filter('');document.getElementById('fast_filter').focus();"
|
||||
onclick="clear_fast_filter();"
|
||||
style="background:white;color:black;cursor:pointer;padding:2px;margin:0 0 0 -20px;position:relative;float:right;"
|
||||
title="<?php echo $strReset; ?>">X</span>
|
||||
<input type="text" name="fast_filter" id="fast_filter"
|
||||
|
Reference in New Issue
Block a user