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: 86564ad7110fa7266737c838ddf60288c3145052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- 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");
    }