From 56ae839c079134b85fbeb339f73bb2cf2778a357 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 29 Apr 2019 15:48:14 +0000 Subject: [PATCH] Bug 22803: (alternate) Set dataTable width issue This patch sets the "autowidth" option to "false" for the OPAC subscriptions DataTable on opac-detail.pl. This gives the table a fluid width rather than having the width be "hard-coded" by DataTables upon first page render. To test, apply the patch and view the detail page for a bibliographic record with a subscription. Under the "Subscriptions" tab, the table of latest issues should fill the width of the tab container. Resize the browser window and confirm that the table width adjusts accordingly. Signed-off-by: Liz Rea --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 7d25cde9db..a7c15a6a34 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1472,6 +1472,7 @@ "columnDefs": [ { "type": "title-string", "targets" : [ "title-string" ] } ], + "autoWidth": false, "bKohaColumnsUseNames": true }, serial_column_settings); -- 2.11.0