diff options
Diffstat (limited to 'app/views/layouts/_flash.html.haml')
-rw-r--r-- | app/views/layouts/_flash.html.haml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/layouts/_flash.html.haml b/app/views/layouts/_flash.html.haml new file mode 100644 index 00000000000..4b6eb2b500e --- /dev/null +++ b/app/views/layouts/_flash.html.haml @@ -0,0 +1,18 @@ +- if alert || notice + - text = alert || notice + %div{:style => "display:none", :id => "flash_container"} + .container + %center + %h4= text + :javascript + $(function(){ + $("#flash_container").slideDown("slow"); + $("#flash_container").click(function(){ + $(this).slideUp("slow"); + }); + setTimeout("hideFlash()",2000); + }); + + function hideFlash(){ + $("#flash_container").slideUp("slow"); + } |