Separate function for clearing input.

This commit is contained in:
Michal Čihař
2010-04-02 13:14:45 +02:00
parent 6f602b6777
commit 4b79515d00
2 changed files with 11 additions and 1 deletions

View File

@@ -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 */