2017-08-17 22:00:37 +05:30
|
|
|
import $ from 'jquery';
|
|
|
|
|
|
|
|
// bootstrap jQuery plugins
|
2018-11-08 19:23:39 +05:30
|
|
|
import 'bootstrap';
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
// custom jQuery functions
|
|
|
|
$.fn.extend({
|
2018-12-13 13:39:08 +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
|
|
|
});
|