From e3bf39b4bc9e81c1304abb3293a5367582bd58d9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 29 Feb 2016 08:34:46 +0000 Subject: [PATCH] Bug 15916: Datatables - buttons area should be defined Commit 243b797dd11bc0ac1f475195ab765ffbf2220f8b Bug 15285: Update common files Set 'B' to the default dom of Datatable constructor. This cannot work if there is no button defined. This patch defined an empty 'buttons' param for this constructor, DT does not raised an error anymore when initialising. Test plan: Confirm that the tables on the following tables are not broken: - circ/waitingreserves.pl - circ/reserveratios.pl - patron_lists/lists.pl - virtualshelves/shelves.pl - acqui/invoices.pl And with datatables: - circ/circulation.pl - admin/currency.pl Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- koha-tmpl/intranet-tmpl/prog/en/js/datatables.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js index 71185c6695..fd9dfd2662 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/datatables.js @@ -24,6 +24,7 @@ var dataTablesDefaults = { "sZeroRecords" : window.MSG_DT_ZERO_RECORDS || "No matching records found" }, "dom": '<"top pager"ilpfB>tr<"bottom pager"ip>', + "buttons": [], "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, window.MSG_DT_ALL || "All"]], "iDisplayLength": 20 }; -- 2.39.5