mirror of https://github.com/ColorlibHQ/AdminLTE
enhanced bootstrap switch js part in demo
parent
7bb5b47bff
commit
487ccecf05
|
@ -1286,8 +1286,11 @@
|
||||||
$('.my-colorpicker2').on('colorpickerChange', function(event) {
|
$('.my-colorpicker2').on('colorpickerChange', function(event) {
|
||||||
$('.my-colorpicker2 .fa-square').css('color', event.color.toString());
|
$('.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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue