gitlab-org--gitlab-foss/app/assets/javascripts/extensions/jquery.js.coffee
Robert Speicher 29626b0885 Remove unused showAndHide, simpleFormat, and linkify functions
Also removes redundant `unbind` call
2015-06-02 20:32:07 -04:00

11 lines
301 B
CoffeeScript

# Disable an element and add the 'disabled' Bootstrap class
$.fn.extend disable: ->
$(@)
.attr('disabled', 'disabled')
.addClass('disabled')
# Enable an element and remove the 'disabled' Bootstrap class
$.fn.extend enable: ->
$(@)
.removeAttr('disabled')
.removeClass('disabled')