Make flash messages fixed and sticked to bottom

This commit is contained in:
GitLab
2013-08-17 06:32:59 -04:00
parent 0e387919c3
commit 533ef87b13
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ $ ->
if (flash = $(".flash-container")).length > 0
flash.click -> $(@).fadeOut()
flash.show()
setTimeout (-> flash.fadeOut()), 9000
setTimeout (-> flash.fadeOut()), 3000
# Disable form buttons while a form is submitting
$('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) ->
+4
View File
@@ -51,6 +51,10 @@ table a code {
text-align: center;
color: #fff;
font-size: 14px;
position: fixed;
bottom: 0;
width: 100%;
opacity: 0.8;
.flash-notice {
background: #49C;