better integration of filters

This commit is contained in:
Ludovic CANDELLIER
2022-01-24 00:31:23 +01:00
parent 3e26bf368b
commit 30666e2931
5 changed files with 66 additions and 35 deletions

View File

@@ -0,0 +1,20 @@
@if(!defined('LOAD_SIDEBAR'))
@push('scripts')
<script type="text/javascript" src="/assets/plugins/sidr/jquery.sidr.min.js"></script>
<script>
function initSidebar(sel) {
var selector = (typeof(sel) == 'undefined') ? '#sidebar' : sel;
$(selector).sidr();
}
</script>
@endpush
@push('css')
<link rel="stylesheet" href="/assets/plugins/sidr/stylesheets/jquery.sidr.light.min.css">
@endpush
@php(define('LOAD_SIDEBAR', true))
@endif