Restyle flash message. Not it does not overflow head panel
This commit is contained in:
parent
e6b5f4ade9
commit
54d95f5897
12 changed files with 34 additions and 36 deletions
|
@ -54,10 +54,10 @@ $ ->
|
|||
$(@).parents('form').submit()
|
||||
|
||||
# Flash
|
||||
if (flash = $("#flash-container")).length > 0
|
||||
flash.click -> $(@).slideUp("slow")
|
||||
flash.slideDown "slow"
|
||||
setTimeout (-> flash.slideUp("slow")), 3000
|
||||
if (flash = $(".flash-container")).length > 0
|
||||
flash.click -> $(@).fadeOut()
|
||||
flash.show()
|
||||
setTimeout (-> flash.fadeOut()), 3000
|
||||
|
||||
# Disable form buttons while a form is submitting
|
||||
$('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue