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
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/affix';
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/alert';
|
|
|
|
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-03-13 17:48:32 -04:00
|
|
|
|
|
|
|
// custom jQuery functions
|
|
|
|
$.fn.extend({
|
|
|
|
disable() { return $(this).attr('disabled', 'disabled').addClass('disabled'); },
|
|
|
|
enable() { return $(this).removeAttr('disabled').removeClass('disabled'); },
|
|
|
|
});
|