debian-mirror-gitlab/app/assets/javascripts/extensions/jquery.js.coffee

14 lines
239 B
CoffeeScript
Raw Normal View History

2014-09-02 18:07:02 +05:30
$.fn.showAndHide = ->
$(@).show().
delay(3000).
fadeOut()
$.fn.enableButton = ->
$(@).removeAttr('disabled').
removeClass('disabled')
$.fn.disableButton = ->
$(@).attr('disabled', 'disabled').
addClass('disabled')