debian-mirror-gitlab/app/assets/javascripts/extensions/jquery.js
2016-09-13 17:45:13 +05:30

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);