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
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/affix';
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/alert';
|
2017-07-31 16:33:10 +00:00
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/button';
|
2017-03-01 23:02:01 +00:00
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/dropdown';
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/modal';
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/tab';
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/transition';
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/tooltip';
|
2017-06-23 20:52:43 +00:00
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/popover';
|
2017-03-13 21:48:32 +00:00
|
|
|
|
|
|
|
// custom jQuery functions
|
|
|
|
$.fn.extend({
|
|
|
|
disable() { return $(this).attr('disabled', 'disabled').addClass('disabled'); },
|
|
|
|
enable() { return $(this).removeAttr('disabled').removeClass('disabled'); },
|
|
|
|
});
|