Commit 1a3ca6b14992e0333e1acd9e7248d2781c27f5a5

Authored by Dmitriy Zaporozhets
2 parents 0e387919 798f7db2

Merge pull request #4797 from mbajur/flashes-revived

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()), 5000
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;