This commit is contained in:
ludo
2024-03-03 14:44:35 +01:00
parent cc411cba68
commit 139aeb8074
6 changed files with 85 additions and 74 deletions

View File

@@ -1,15 +1,15 @@
@if(!defined('LOAD_CHEVRON'))
@push('scripts')
@if (!defined('LOAD_CHEVRON'))
@push('scripts')
@component('boilerplate::minify')
<script>
function initChevron(sel) {
var selector = (typeof(sel) == 'undefined') ? '.card-header .btn-link' : sel;
$(selector).click(function() {
$(selector).off().click(function() {
$(this).find('i').toggleClass('fa-chevron-right fa-chevron-down')
});
}
</script>
@endcomponent
@endpush
@php(define('LOAD_CHEVRON', true))
@endpush
@php(define('LOAD_CHEVRON', true))
@endif