Add project files.
This commit is contained in:
21
assets/js/pages/crud/forms/widgets/bootstrap-switch.js
vendored
Normal file
21
assets/js/pages/crud/forms/widgets/bootstrap-switch.js
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
// Class definition
|
||||
|
||||
var KTBootstrapSwitch = function() {
|
||||
|
||||
// Private functions
|
||||
var demos = function() {
|
||||
// minimum setup
|
||||
$('[data-switch=true]').bootstrapSwitch();
|
||||
};
|
||||
|
||||
return {
|
||||
// public functions
|
||||
init: function() {
|
||||
demos();
|
||||
},
|
||||
};
|
||||
}();
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
KTBootstrapSwitch.init();
|
||||
});
|
||||
Reference in New Issue
Block a user