Commit 5500e15b authored by PERRIER Guillaume's avatar PERRIER Guillaume
Browse files

Correctif erreur Datatables des 'Other VO List' (page publique et privée).

parent a25cf76c
......@@ -13,7 +13,6 @@
</tr>
</thead>
<thead>
<tbody>
......
......@@ -103,10 +103,6 @@
//Apply the search by header
applySearch();
// Add XML exports button to Vo Other List Tab
{% if voFullLink is defined and voListOtherLink is defined %}
constructExportButtons('{{ voFullLink }}', '{{ voListOtherLink }}');
{% endif %}
//show page loader on click on action button in tab
showLoaderOnVoAction();
......
This diff is collapsed.
......@@ -32,8 +32,7 @@ $(document).ready(function () {
// $($.fn.dataTable.tables(true)).DataTable().columns.adjust().responsive.recalc();
$('.panel-collapse').on('shown.bs.collapse', function (e) {
var tableIdToUpdate = $(e.currentTarget).find('.card-body').find('.table')[0].id;
if(tableIdToUpdate.length > 0) $('#' + tableIdToUpdate).DataTable().columns.adjust().responsive.recalc();
$.fn.dataTable.tables( {visible: true, api: true} ).columns.adjust();
});
});
......@@ -231,51 +230,34 @@ function setUpAup() {
//build Other VO Table
otherVoListTable = $("#otherVoListTable").DataTable({
// "autoWidth" : false,
"columnDefs": [
columnDefs: [
{
"type": "num", "targets": [4, 5],
"type": "num",
"targets": [4, 5],
},
// { targets: 0, orderable: false },
// { targets: [1, 2, 3, ,4 ,5 ,6], visible: false }
{"width": 100, "targets": 0},
],
"lengthMenu": [[10, 25, 50, 100, 500, -1], [10, 25, 50, 100, 500, "All"]],
"columns": [
{"data": "name"},
{"data": "discipline", "orderable": false},
lengthMenu: [[10, 25, 50, 100, 500, -1], [10, 25, 50, 100, 500, "All"]],
columns: [
{"data": "Name"},
{"data": "Discipline(s)", "orderable": false},
{"data": "Registry System", "orderable": false},
{"data": "Active Users"},
{"data": "Total Users"},
{"data": "Actions", "orderable": false, "searchable": false},
{"data": "serial", "orderable": false, "searchable": false},
{"data": "status", "orderable": false, "searchable": false},
{"data": "Details", "orderable": false, "searchable": false}
],
"order": [[1, 'asc']],
order: [[1, 'asc']],
dom: '<"top pb-2"B><"pb-2 float-right"fl><"bottom"rtip><"clear">',
stateSave: true,
"searchable": true,
searchable: true,
buttons: [
{
extend: 'colvis',
columnDefs: [ {className: 'text-info',targets: 1}],
// text: '<button type="button" value="Search" id="btnSearch" class="btn btn-primary btn-xs">Search</button>',
className: 'text-white bg-primary',
columns: [0, 1, 2, 3, 4, 5, 6, 7],
}, {
columns: [0, 1, 2, 3, 4],
},
{
extend: 'collection',
text: 'Export',
className: 'exportButtonOther text-white bg-primary',
......@@ -290,9 +272,6 @@ function setUpAup() {
],
}).columns.adjust().draw();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment