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