Restyle flash message. Not it does not overflow head panel

This commit is contained in:
Dmitriy Zaporozhets 2013-02-28 11:06:52 +02:00
parent e6b5f4ade9
commit 54d95f5897
12 changed files with 34 additions and 36 deletions

View file

@ -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) ->