Bug 36640: Remove autoWidth: false for responsive tables

From Owen:
"""
Table columns don't collapse as you change the browser width.
They start collapsed if you narrow the window and reload the page. But they don't expand as you widen the browser window.
"""

I have not found a reason for this in the changelog of the responsive
plugin. Maybe there is another way to fix this?

Signed-off-by: Jake Deery <jake.deery@ptfs-europe.com>
Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-11-06 10:32:13 +01:00 committed by Katrin Fischer
parent e0193051e1
commit f4626daf2d
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
15 changed files with 0 additions and 19 deletions

View File

@ -109,7 +109,6 @@ function cancelEnrollment( id ) {
"searching": false,
"paging": false,
"info": false,
"autoWidth": false,
"responsive": {
"details": { "type": "column", "target": -1 }
},

View File

@ -92,7 +92,6 @@ $( document ).ready(function() {
"order": [[ 0, "desc" ]],
[% END %]
"dom": '<"#filter_p">',
"autoWidth": false,
"responsive": {
"details": { "type": 'column',"target": -1 }
},
@ -105,7 +104,6 @@ $( document ).ready(function() {
} ));
$('table[id^="finestable-"]').dataTable($.extend(true, {}, dataTablesDefaults, {
"autoWidth": false,
"responsive": {
"details": { "type": 'column',"target": -1 }
},

View File

@ -152,7 +152,6 @@
"searching": false,
"paging": false,
"info": false,
"autoWidth": false,
"responsive": {
"details": { "type": 'column',"target": -1 }
},

View File

@ -129,7 +129,6 @@
KohaTable("#course-items-table", {
"dom": '<"top"<"table_controls"f>>t',
"sorting": [[ 1, "asc" ]],
"autoWidth": false,
"language": {
"search": "_INPUT_",
"searchPlaceholder": _("Search course reserves")

View File

@ -78,7 +78,6 @@
KohaTable("#course_reserves_table", {
"dom": '<"top"<"table_controls"f>>rt<"clear">',
"sorting": [[ 1, "asc" ]],
"autoWidth": false,
"asColumnDefs": [
{ "aTargets": [ 1 ], "sType": "nsb-nse" },
],

View File

@ -325,7 +325,6 @@
"searching": false,
"paging": false,
"info": false,
"autoWidth": false,
"responsive": {
"details": { "type": 'column',"target": -1 }
},

View File

@ -1750,7 +1750,6 @@
{ "className": "dtr-control", "orderable": false, "targets": -1 }
],
"bKohaColumnsUseNames": true,
"autoWidth": false,
"responsive": {
"details": { "type": 'column', "target": -1 }
}
@ -1762,7 +1761,6 @@
{ "className": "dtr-control", "orderable": false, "targets": -1 }
],
"bKohaColumnsUseNames": true,
"autoWidth": false,
"responsive": {
"details": { "type": 'column', "target": -1 }
}
@ -1773,7 +1771,6 @@
KohaTable("#subscriptionst", {
dom: '<"clearfix">t',
"sorting": [[ 1, "desc" ]],
"autoWidth": false,
"bKohaColumnsUseNames": true,
"responsive": {
"details": { "type": 'column', "target": -1 }

View File

@ -237,7 +237,6 @@
var columns_settings = []; // Empty because there are no columns we want to be configurable
var table = KohaTable("#readingrec", {
"dom": '<"top"<"table_entries"i><"table_controls"fB>>t',
"autoWidth": false,
"language": {
"search": "_INPUT_",
"searchPlaceholder": _("Search")

View File

@ -136,7 +136,6 @@
return confirmDelete(_("Are you sure you want to remove this recall?"));
});
$("#recalls-table").dataTable($.extend(true, {}, dataTablesDefaults, {
"autoWidth": false,
"responsive": {
"details": { "type": 'column', "target": -1 }
},

View File

@ -306,7 +306,6 @@
"search": "_INPUT_",
"searchPlaceholder": _("Search")
},
"autoWidth": false,
"responsive": {
"details": { "type": 'column',"target": -1 }
},

View File

@ -570,7 +570,6 @@
$(function() {
$("#suggestt").dataTable($.extend(true, {}, dataTablesDefaults, {
"order": [[ 1, "asc" ]],
"autoWidth": false,
"columnDefs": [
[% IF ( loggedinusername ) %]{ "targets": [ 0 ], "sortable": false, "searchable": false }[% END %],
{ "className": 'dtr-control', "orderable": false, "targets": -1 },

View File

@ -265,7 +265,6 @@
$("#mytagst").dataTable($.extend(true, {}, dataTablesDefaults, {
"sorting": [[ 2, "asc" ]],
"autoWidth": false,
"columnDefs": [
{ "targets": [ 0 ], "sortable": false, "searchable": false },
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },

View File

@ -149,7 +149,6 @@
<script>
$(function() {
$("#topissuest").dataTable($.extend(true, {}, dataTablesDefaults, {
"autoWidth": false,
"sorting": [[3, "desc"]],
"columnDefs": [
{ "sortable": false, "searchable": false, 'targets': [ 'NoSort' ] },

View File

@ -1237,7 +1237,6 @@
"search": "_INPUT_",
"searchPlaceholder": _("Search")
},
"autoWidth": false,
"responsive": {
details: {
type: 'column',
@ -1271,7 +1270,6 @@
"searching": false,
"paging": false,
"info": false,
"autoWidth": false,
"responsive": {
"details": { "type": 'column',"target": -1 }
},

View File

@ -593,7 +593,6 @@
"search": "_INPUT_",
"searchPlaceholder": _("Search")
},
"autoWidth": false,
"responsive": {
details: {
type: 'column',