enhanced bootstrap switch js part in demo
This commit is contained in:
@@ -1286,8 +1286,11 @@
|
||||
$('.my-colorpicker2').on('colorpickerChange', function(event) {
|
||||
$('.my-colorpicker2 .fa-square').css('color', event.color.toString());
|
||||
});
|
||||
|
||||
$("[data-bootstrap-switch]").bootstrapSwitch();
|
||||
|
||||
$("input[data-bootstrap-switch]").each(function(){
|
||||
$(this).bootstrapSwitch('state', $(this).prop('checked'));
|
||||
});
|
||||
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user