_flash.html.haml 446 Bytes
Newer Older
gitlabhq's avatar
gitlabhq committed
1 2 3 4 5 6 7 8
- if alert || notice
  - text = alert || notice
  %div{:style => "display:none", :id => "flash_container"}
    .container
      %center
        %h4= text
  :javascript
    $(function(){
Nihad Abbasov's avatar
Nihad Abbasov committed
9 10 11
      $("#flash_container").slideDown("slow");
      $("#flash_container").click(function(){
        $(this).slideUp("slow");
gitlabhq's avatar
gitlabhq committed
12 13 14 15 16 17 18
      });
      setTimeout("hideFlash()",2000);
    });

    function hideFlash(){
      $("#flash_container").slideUp("slow");
    }