Skip to content

Commit 492e351

Browse files
committed
Checkbox/radio init fix
1 parent 4df269d commit 492e351

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎js/flatui-checkbox.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
}
103103
});
104104

105-
$(window).on('load', function () {
105+
$(function () {
106106
$('[data-toggle="checkbox"]').each(function () {
107107
var $checkbox = $(this);
108108
$checkbox.checkbox();

‎js/flatui-radio.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
}
132132
});
133133

134-
$(window).on('load', function () {
134+
$(function () {
135135
$('[data-toggle="radio"]').each(function () {
136136
var $radio = $(this);
137137
$radio.radio();

0 commit comments

Comments
 (0)