Add our JS to collapse the sidebar

This commit is contained in:
Deon George 2024-07-05 10:18:39 +10:00
parent fd3487f9b0
commit a69049c4ff

View File

@ -89,6 +89,18 @@
});
</script>
<script type="text/javascript">
$(document).ready(function() {
$('body')
.addClass('sidebar-collapse')
.delay(500)
.queue(function () {
window.dispatchEvent(new Event('resize'));
$(this).dequeue();
});
});
</script>
@if(file_exists('js/custom.js'))
<!-- Any Custom JS -->
<script src="{{ asset('js/custom.js') }}"></script>