2017-03-13 21:48:32 +00:00
|
|
|
import $ from 'jquery';
|
2017-03-01 22:01:33 +00:00
|
|
|
|
2017-03-01 23:02:01 +00:00
|
|
|
// bootstrap jQuery plugins
|
2020-12-02 00:09:45 +00:00
|
|
|
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';
|
2017-03-13 21:48:32 +00:00
|
|
|
|
|
|
|
// custom jQuery functions
|
|
|
|
$.fn.extend({
|
2018-10-24 19:17:03 +00:00
|
|
|
disable() {
|
2020-12-23 12:10:26 +00:00
|
|
|
return $(this).prop('disabled', true).addClass('disabled');
|
2018-10-24 19:17:03 +00:00
|
|
|
},
|
|
|
|
enable() {
|
2020-12-23 12:10:26 +00:00
|
|
|
return $(this).prop('disabled', false).removeClass('disabled');
|
2018-10-24 19:17:03 +00:00
|
|
|
},
|
2017-03-13 21:48:32 +00:00
|
|
|
});
|