Add preview from father, add new features
This commit is contained in:
16
resources/views/load/layout/chevron.blade.php
Normal file
16
resources/views/load/layout/chevron.blade.php
Normal file
@@ -0,0 +1,16 @@
|
||||
@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')
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@endpush
|
||||
|
||||
@php(define('LOAD_CHEVRON', true))
|
||||
@endif
|
||||
Reference in New Issue
Block a user