Update with new price management
This commit is contained in:
@@ -1,23 +1,45 @@
|
||||
@if(!defined('LOAD_DATATABLES'))
|
||||
|
||||
@push('css')
|
||||
<link rel="stylesheet" href="{{ asset('css/datatables.min.css') }}">
|
||||
<link rel="stylesheet" href="{!! mix('/js/datatables/datatables.min.css', '/assets/vendor/boilerplate') !!}">
|
||||
<link rel="stylesheet" href="{{ asset('assets/plugins/datatables.min.css') }}">
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script src="{{ asset('js/datatables.min.js') }}"></script>
|
||||
@include('boilerplate::load.moment')
|
||||
<script src="{{ asset('assets/plugins/datatables.min.js') }}"></script>
|
||||
<script src="{{ asset('vendor/datatables/buttons.server-side.js') }}"></script>
|
||||
|
||||
<script>
|
||||
$.extend( true, $.fn.dataTable.defaults, {
|
||||
language: {
|
||||
url: "/assets/vendor/boilerplate/js/datatables/i18n/French.json"
|
||||
}
|
||||
});
|
||||
</script>
|
||||
url: "/assets/plugins/datatables_lang/{{ \App::getLocale() }}.json"
|
||||
},
|
||||
});
|
||||
|
||||
function reloadDatatable(name) {
|
||||
getDatatable(name).ajax.reload(null,false);
|
||||
}
|
||||
|
||||
function getDatatable(name) {
|
||||
if (typeof(window.LaravelDataTables) !== 'undefined') {
|
||||
return window.LaravelDataTables[name + "-table"];
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function getDatatableState(name) {
|
||||
var table = getDatatable("{{ $model }}");
|
||||
return table ? table.state.loaded() : false;
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@php(define('LOAD_DATATABLES', true))
|
||||
@endif
|
||||
|
||||
@endif
|
||||
@push('scripts')
|
||||
@if ($dataTable)
|
||||
{{ $dataTable->scripts() }}
|
||||
@endif
|
||||
@endpush
|
||||
Reference in New Issue
Block a user