resolve conflicts

This commit is contained in:
1Day 2021-12-14 16:05:27 +01:00
parent 720622ae02
commit 82ce13fcbd

View file

@ -55,8 +55,7 @@
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody></tbody>
</tbody>
</table> </table>
</div> </div>
@ -71,37 +70,38 @@
<script> <script>
function submitResult() { function submitResult() {
return confirm("{{__('Are you sure you wish to delete?')}}") !== false; return confirm("{{__('Are you sure you wish to delete?')}}") !== false;
} }
document.addEventListener("DOMContentLoaded", function () { document.addEventListener("DOMContentLoaded", function () {
$('#datatable').DataTable({ $("#datatable").DataTable({
language: { language: {
url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{config("app.datatable_locale")}}.json' url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{config("app.datatable_locale")}}.json'
}, },
processing: true, processing: true,
serverSide: true, serverSide: true,
stateSave: true, stateSave: true,
order: [[ 2, "asc" ]], order: [
ajax: "{{route('admin.products.datatable')}}", [ 2, "asc" ]
columns: [
{data: 'disabled'},
{data: 'name'},
{data: 'price'},
{data: 'memory'},
{data: 'cpu'},
{data: 'swap'},
{data: 'disk'},
{data: 'databases'},
{data: 'backups'},
{data: 'nodes', sortable: false},
{data: 'eggs', sortable: false},
{data: 'servers', sortable: false},
{data: 'created_at'},
{data: 'actions', sortable: false},
], ],
fnDrawCallback: function( oSettings ) { ajax: "{{ route('admin.products.datatable') }}",
$('[data-toggle="popover"]').popover(); columns: [
{data: "disabled"},
{data: "name"},
{data: "price"},
{data: "memory"},
{data: "cpu"},
{data: "swap"},
{data: "disk"},
{data: "databases"},
{data: "backups"},
{data: "nodes", sortable: false},
{data: "eggs", sortable: false},
{data: "servers", sortable: false},
{data: "created_at"},
{data: "actions", sortable: false}
],
fnDrawCallback: function (oSettings) {
$("[data-toggle=\"popover\"]").popover();
} }
}); });
}); });
@ -109,4 +109,4 @@
@endsection @endsection