¨4.0.1¨
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
<script type="module">
|
||||
keypressAction([
|
||||
{ key: 'b', route: "{{ route('admin.products.edit', $productId) }}" },
|
||||
]);
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
@endcomponent
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
<script type="module">
|
||||
Mousetrap.bind('del', function () {
|
||||
$('#product-reviews-table_wrapper .btn-delete').trigger('click');
|
||||
});
|
||||
|
||||
DataTable.setRoutes('#product-reviews-table', {
|
||||
index: {
|
||||
name: 'admin.reviews.index',
|
||||
table: {
|
||||
name: 'admin.reviews.table',
|
||||
params: { productId: '{{ $product->id }}' }
|
||||
},
|
||||
edit: { name: 'admin.reviews.edit' },
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
<script type="module">
|
||||
keypressAction([
|
||||
{ key: 'b', route: "{{ route('admin.reviews.index') }}" },
|
||||
]);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
@endcomponent
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
<script type="module">
|
||||
new DataTable('#reviews-table .table', {
|
||||
columns: [
|
||||
{ data: 'checkbox', orderable: false, searchable: false, width: '3%' },
|
||||
|
||||
Reference in New Issue
Block a user