debian-mirror-gitlab/app/assets/javascripts/extensions/jquery.js.coffee
2014-09-02 14:37:02 +02:00

13 lines
239 B
CoffeeScript

$.fn.showAndHide = ->
$(@).show().
delay(3000).
fadeOut()
$.fn.enableButton = ->
$(@).removeAttr('disabled').
removeClass('disabled')
$.fn.disableButton = ->
$(@).attr('disabled', 'disabled').
addClass('disabled')