summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/commons/bootstrap.js
blob: 50e2949ab55f218722fc2a3427ad55c5c3e2aacd (plain)
1
2
3
4
5
6
7
8
9
10
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'); },
});