blob: e5e23f2fb5e2bc39b31bb9b2af1a2e00886860d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import $ from 'jquery';
// bootstrap jQuery plugins
import 'bootstrap/js/dist/alert';
import 'bootstrap/js/dist/button';
import 'bootstrap/js/dist/collapse';
import 'bootstrap/js/dist/modal';
import 'bootstrap/js/dist/dropdown';
import 'bootstrap/js/dist/tab';
// custom jQuery functions
$.fn.extend({
disable() {
return $(this).prop('disabled', true).addClass('disabled');
},
enable() {
return $(this).prop('disabled', false).removeClass('disabled');
},
});
|