website/assets/coffee/modules/alert-box.coffee

16 lines
336 B
CoffeeScript
Raw Normal View History

2015-08-30 12:34:43 -04:00
(($) ->
$.fn.alert = ->
@each ->
self = $(this)
self.on 'click', '.close-button', (e) ->
e.preventDefault()
self.addClass 'close'
return
self.on 'transitionEnd webkitTransitionEnd oTransitionEnd', ->
self.remove()
return
return
return
) jQuery