Commit 533ef87b authored by GitLab's avatar GitLab

Make flash messages fixed and sticked to bottom

parent 0e387919
...@@ -89,7 +89,7 @@ $ -> ...@@ -89,7 +89,7 @@ $ ->
if (flash = $(".flash-container")).length > 0 if (flash = $(".flash-container")).length > 0
flash.click -> $(@).fadeOut() flash.click -> $(@).fadeOut()
flash.show() flash.show()
setTimeout (-> flash.fadeOut()), 9000 setTimeout (-> flash.fadeOut()), 3000
# Disable form buttons while a form is submitting # Disable form buttons while a form is submitting
$('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) -> $('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) ->
......
...@@ -51,6 +51,10 @@ table a code { ...@@ -51,6 +51,10 @@ table a code {
text-align: center; text-align: center;
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
position: fixed;
bottom: 0;
width: 100%;
opacity: 0.8;
.flash-notice { .flash-notice {
background: #49C; background: #49C;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment