Files
opensem/resources/views/load/layout/chevron.blade.php
Ludovic CANDELLIER e298320119 Fixes on widget uploder
2021-04-15 23:58:51 +02:00

20 lines
405 B
PHP

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