Update with new price management
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
<div class="input-group">
|
||||
|
||||
<div class="input-group-prepend">
|
||||
@include('components.datatables.buttons.pageLength')
|
||||
<span class="input-group-text"><i class="fa fa-search"></i></span>
|
||||
</div>
|
||||
<input type="text" class="form-control search-btn" placeholder="Rechercher..." value="">
|
||||
|
||||
<input type="text" class="form-control search-btn" placeholder="{{ __('search') }}" value="">
|
||||
|
||||
@if ((isset($with_filters) and $with_filters) || (isset($with_colvis) and $with_colvis))
|
||||
<div class="input-group-append">
|
||||
@if (isset($with_filters) && $with_filters)
|
||||
@@ -14,14 +17,26 @@
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
@include('load.functions')
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
var $search = $('#{{ $model }}-table-header .search-btn');
|
||||
$search.on( 'keyup click', function () {
|
||||
var table = window.LaravelDataTables["{{ $model }}-table"];
|
||||
table.search($search.val()).draw();
|
||||
} );
|
||||
$( document ).ready(function() {
|
||||
var table = getDatatable("{{ $model }}");
|
||||
|
||||
var $search = $('#{{ $model }}-table-header .search-btn');
|
||||
var state = getDatatableState("{{ $model }}");
|
||||
|
||||
if (state && (typeof(state.search.search) != 'undefined')) {
|
||||
$search.val(state.search.search);
|
||||
}
|
||||
|
||||
$search.on('keyup', delay(function () {
|
||||
table.search($search.val()).draw();
|
||||
}, 500));
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user