Commit 1a3ca6b1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #4797 from mbajur/flashes-revived

Make flash messages fixed and sticked to bottom
parents 0e387919 798f7db2
...@@ -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()), 5000
# 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