Bug 15916: Datatables - buttons area should be defined

Commit 243b797dd1
    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 <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
This commit is contained in:
Jonathan Druart 2016-02-29 08:34:46 +00:00 committed by Brendan Gallagher
parent cd9589681d
commit e3bf39b4bc
1 changed files with 1 additions and 0 deletions

View File

@ -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
};