gitlab-org--gitlab-foss/app/assets/javascripts/extensions/jquery.js
2016-07-24 23:45:11 +03:00

14 lines
279 B
JavaScript

(function() {
$.fn.extend({
disable: function() {
return $(this).attr('disabled', 'disabled').addClass('disabled');
}
});
$.fn.extend({
enable: function() {
return $(this).removeAttr('disabled').removeClass('disabled');
}
});
}).call(this);