Add toggle for homepage

This commit is contained in:
Ludovic CANDELLIER
2022-03-24 10:08:23 +01:00
parent c65056531c
commit c357ea932a
6 changed files with 33 additions and 7 deletions

View File

@@ -27,7 +27,8 @@
@push('js')
<script>
function handleCategory() {
initToggle("{{ route('Admin.Shop.Categories.toggleVisible') }}");
initToggle("{{ route('Admin.Shop.Categories.toggleVisible') }}", '.visible');
initToggle("{{ route('Admin.Shop.Categories.toggleHomepage') }}", '.homepage');
$('#tree1').tree('reload');
}