better integration of filters
This commit is contained in:
20
resources/views/load/layout/sidebar.blade.php
Normal file
20
resources/views/load/layout/sidebar.blade.php
Normal 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
|
||||
Reference in New Issue
Block a user