agenda-libre-ruby/app/assets/javascripts/flash.js.coffee

8 lines
286 B
CoffeeScript
Raw Normal View History

2014-03-07 22:21:52 +01:00
$(document).ready ->
2014-05-31 23:13:43 +02:00
$('#flash_messages .flash, #error_explanation.flash').removeClass('flash').each ->
$(this).hide()
2014-03-07 22:21:52 +01:00
jQuery.gritter.add
image: "/assets/#{$(this).attr('class')}.png",
title: $(this).children('h2').text(),
text: $(this).children('p').text()