jQuery -> $

This commit is contained in:
Michal Čihař
2010-04-12 11:30:23 +02:00
parent 8e68430610
commit 7393ad7bea
4 changed files with 9 additions and 9 deletions

View File

@@ -177,17 +177,17 @@ function fast_filter(value){
* Clears fast filter.
*/
function clear_fast_filter() {
var elm = jQuery('#NavFilter input');
var elm = $('#NavFilter input');
elm.val('');
fast_filter('');
elm.focus();
}
/* Performed on load */
jQuery(document).ready(function(){
$(document).ready(function(){
/* Display filter */
jQuery('#NavFilter').css('display', 'inline');
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);});
$('#NavFilter').css('display', 'inline');
$('#clear_fast_filter').click(clear_fast_filter);
$('#fast_filter').focus(function (evt) {evt.target.select();});
$('#fast_filter').keyup(function (evt) {fast_filter(evt.target.value);});
});