debian-mirror-gitlab/app/assets/javascripts/commons/bootstrap.js
2018-11-08 19:23:39 +05:30

10 lines
276 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'); },
});