gitlab-org--gitlab-foss/app/assets/javascripts/extensions/jquery.js.coffee
2013-08-06 18:45:45 +03: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')