gitlab-org--gitlab-foss/app/assets/javascripts/commons/bootstrap.js
2018-10-24 19:17:03 +00:00

18 lines
316 B
JavaScript

import $ from 'jquery';
// bootstrap jQuery plugins
import 'bootstrap';
// custom jQuery functions
$.fn.extend({
disable() {
return $(this)
.prop('disabled', true)
.addClass('disabled');
},
enable() {
return $(this)
.prop('disabled', false)
.removeClass('disabled');
},
});