2017-08-17 22:00:37 +05:30
|
|
|
import $ from 'jquery';
|
|
|
|
|
|
|
|
// bootstrap jQuery plugins
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/affix';
|
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/alert';
|
2017-09-10 17:25:29 +05:30
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/button';
|
2017-08-17 22:00:37 +05:30
|
|
|
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-09-10 17:25:29 +05:30
|
|
|
import 'bootstrap-sass/assets/javascripts/bootstrap/popover';
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
// custom jQuery functions
|
|
|
|
$.fn.extend({
|
2018-03-27 19:54:05 +05:30
|
|
|
disable() { return $(this).prop('disabled', true).addClass('disabled'); },
|
|
|
|
enable() { return $(this).prop('disabled', false).removeClass('disabled'); },
|
2017-08-17 22:00:37 +05:30
|
|
|
});
|