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

15 lines
279 B
JavaScript
Raw Normal View History

2016-09-13 17:45:13 +05:30
(function() {
$.fn.extend({
disable: function() {
return $(this).attr('disabled', 'disabled').addClass('disabled');
}
});
$.fn.extend({
enable: function() {
return $(this).removeAttr('disabled').removeClass('disabled');
}
});
}).call(this);