gitlabhq/app/views/layouts/_flash.html.haml

19 lines
446 B
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
- 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");
2011-10-08 23:36:38 +02:00
});
2012-01-28 10:54:11 +01:00
setTimeout("hideFlash()",3000);
2011-10-08 23:36:38 +02:00
});
function hideFlash(){
$("#flash_container").slideUp("slow");
}