Fade in alerts using jQuery.

This commit is contained in:
Eric Allen 2009-09-02 11:04:42 -04:00
parent fac5e7ca83
commit 6f3dbca3e2

View file

@ -101,12 +101,7 @@ var TodoBehavior = {
// });
/* fade flashes automatically */
Event.observe(window, 'load', function() {
$A(document.getElementsByClassName('alert')).each(function(o) {
o.opacity = 100.0
Effect.Fade(o, {
duration: 8.0
})
});
$(document).ready(function() {
$(".alert").fadeIn(8000);
});