gitlab-org--gitlab-foss/app/assets/javascripts/commons/bootstrap.js

11 lines
276 B
JavaScript
Raw Normal View History

import $ from 'jquery';
// bootstrap jQuery plugins
2018-04-18 16:52:58 -04:00
import 'bootstrap';
// custom jQuery functions
$.fn.extend({
2018-02-20 17:20:48 -05:00
disable() { return $(this).prop('disabled', true).addClass('disabled'); },
enable() { return $(this).prop('disabled', false).removeClass('disabled'); },
});