diff --git a/app/views/layouts/standard.html.erb b/app/views/layouts/standard.html.erb index 95cb8326..02480e6f 100644 --- a/app/views/layouts/standard.html.erb +++ b/app/views/layouts/standard.html.erb @@ -122,7 +122,6 @@ /* show the notes of a todo */ TodoBehavior.enableToggleNotes(); Nifty("div#todo_new_action_container","normal"); - if ($('flash').visible()) { new Effect.Fade("flash",{duration:5.0}); } }); diff --git a/public/javascripts/application.js b/public/javascripts/application.js index e85d69bc..a44f9dcf 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -209,8 +209,9 @@ function setup_container_toggles(){ /* Unobtrusive jQuery behavior */ $(document).ready(function() { - /* fade flashes automatically */ + /* fade flashes and alerts in automatically */ $(".alert").fadeIn(8000); + $('#flash:visible').fadeIn(5000); /* set behavior for star icon */ $(".item-container a.star_item").