Reverted datatable to previous state due to visual bugs (#6331)

This commit is contained in:
MatteoBiscosi 2022-03-02 12:52:14 +01:00
parent 14b68e2568
commit 5a8f1b863a
13 changed files with 14 additions and 13 deletions

View file

@ -280,7 +280,7 @@
/* Actions Column */
{% if show_actions then %}
columns.unshift({responsivePriority: 1, width: '5%', targets: -1, className: 'text-center text-nowrap', orderable: false, data: null, render: (_, type, dataRow) => {
columns.push({responsivePriority: 1, width: '5%', targets: -1, className: 'text-center text-nowrap', orderable: false, data: null, render: (_, type, dataRow) => {
const buttons = [
{% if actions.show_info then %}
{icon: 'fa fa-search-plus', title: "{{ i18n('info') }}", href: '#check_info'},
@ -408,10 +408,12 @@
let config = DataTableUtils.getStdDatatableConfig(datatableButton);
config = DataTableUtils.extendConfig(config, {
autowidth: true,
serverSide: true,
searching: false,
info: false,
scrollX: true,
responsive: true,
order: [[ column_order_id, "{* datatable.order_sorting *}" ]],
pagingType: '{{ datatable.pagination }}',
columnDefs: {},