Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_flash.html.haml « layouts « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5139aed498c24a3db27251a34de750fac7b845f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()",3000);
    });

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