gitlab-org--gitlab-foss/app/views/layouts/_flash.html.haml

18 lines
427 B
Text
Raw Normal View History

2011-10-08 17:36:38 -04:00
- if alert || notice
- text = alert || notice
%div{:style => "display:none", :id => "flash_container"}
2012-02-12 12:47:37 -05:00
%center
%h4= text
2011-10-08 17:36:38 -04:00
:javascript
$(function(){
$("#flash_container").slideDown("slow");
$("#flash_container").click(function(){
$(this).slideUp("slow");
2011-10-08 17:36:38 -04:00
});
2012-01-28 04:54:11 -05:00
setTimeout("hideFlash()",3000);
2011-10-08 17:36:38 -04:00
});
function hideFlash(){
$("#flash_container").slideUp("slow");
}