Commit 533ef87b134738e9d5c24067e531ee3fe4e9bf55

Authored by GitLab
1 parent 0e387919

Make flash messages fixed and sticked to bottom

app/assets/javascripts/main.js.coffee
@@ -89,7 +89,7 @@ $ -> @@ -89,7 +89,7 @@ $ ->
89 if (flash = $(".flash-container")).length > 0 89 if (flash = $(".flash-container")).length > 0
90 flash.click -> $(@).fadeOut() 90 flash.click -> $(@).fadeOut()
91 flash.show() 91 flash.show()
92 - setTimeout (-> flash.fadeOut()), 9000 92 + setTimeout (-> flash.fadeOut()), 3000
93 93
94 # Disable form buttons while a form is submitting 94 # Disable form buttons while a form is submitting
95 $('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) -> 95 $('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) ->
app/assets/stylesheets/common.scss
@@ -51,6 +51,10 @@ table a code { @@ -51,6 +51,10 @@ table a code {
51 text-align: center; 51 text-align: center;
52 color: #fff; 52 color: #fff;
53 font-size: 14px; 53 font-size: 14px;
  54 + position: fixed;
  55 + bottom: 0;
  56 + width: 100%;
  57 + opacity: 0.8;
54 58
55 .flash-notice { 59 .flash-notice {
56 background: #49C; 60 background: #49C;