Skip to content

Commit e5bfa9d

Browse files
committed
refactor: update stubs for v3
1 parent 6909fa5 commit e5bfa9d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

templates/scaffold/layouts/app.stub

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@
141141
$(function () {
142142
bsCustomFileInput.init();
143143
});
144+
145+
$("input[data-bootstrap-switch]").each(function(){
146+
$(this).bootstrapSwitch('state', $(this).prop('checked'));
147+
});
144148
</script>
145149

146150
@yield('third_party_scripts')

templates/scaffold/layouts/app_locale.stub

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@
197197
$(function () {
198198
bsCustomFileInput.init();
199199
});
200+
201+
$("input[data-bootstrap-switch]").each(function(){
202+
$(this).bootstrapSwitch('state', $(this).prop('checked'));
203+
});
200204
</script>
201205

202206
@stack('scripts')

0 commit comments

Comments
 (0)