website/assets/coffee/modules/alert-box.coffee
2015-08-30 12:34:43 -04:00

16 lines
336 B
CoffeeScript
Executable File

(($) ->
$.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