gitlab-org--gitlab-foss/app/views/layouts/_flash.html.haml
2012-02-12 19:47:37 +02:00

17 lines
427 B
Text

- if alert || notice
- text = alert || notice
%div{:style => "display:none", :id => "flash_container"}
%center
%h4= text
:javascript
$(function(){
$("#flash_container").slideDown("slow");
$("#flash_container").click(function(){
$(this).slideUp("slow");
});
setTimeout("hideFlash()",3000);
});
function hideFlash(){
$("#flash_container").slideUp("slow");
}