Another question slightly off topic. Where is the animation controlled. When I upgraded from 1.8.x to 1.9.0 the results window starting appearing suddenly instead of scrolling in. (this was regardless of mootools/jquery)
As the animation are differently appreciated, the provided js script are the basic version. If you would like implement a different animation (fade effect for instance) you need to change the code.
For this take the js code, un-minfy it and adapt it to your needs.
For Jquery - Basic effect :
$.post("index-ajax.php", pars, function(data) {
as['sr'].hide(); // Hide the searchResults window
as['sr'].html(data); // Fill the searchResults window
as['sr'].show(); // Show the searchResults window
as['sc'].show();
as['sl'].hide();
});
}
function closeSearch(as) {
as['si'].val('');
as['sr'].hide(); // Hide the searchResults window
as['sc'].hide();
as['sl'].hide();
}
Funny effect :
$.post("index-ajax.php", pars, function(data) {
as['sr'].hide('slow').slideUp().fadeOut(); // Hide the searchResults window
as['sr'].html(data); // Fill the searchResults window
as['sr'].show('slow').slideDown().fadeIn(); // Show the searchResults window
as['sc'].show();
as['sl'].hide();
});
}
function closeSearch(as) {
as['si'].val('');
as['sr'].hide('slow').slideUp().fadeOut(); // Hide the searchResults window
as['sc'].hide();
as['sl'].hide();
}
This is not exactly the implemented code, but this give you where do the appropriate changes.