Bug 16906 - Add DataTables pagination and filter to top of saved SQL reports table
This patch adds a DataTables toolbar to the top of the saved SQL reports
table so that pagination and filtering controls are at the top as well
as the bottom.
To test, apply the patch and go to Reports -> Saved reports. There
should be controls at the top of the table of saved reports for setting
number of results, pagination, and searching.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 1614787d02)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
5381ecda85
commit
e64ff978ff
|
|
@ -87,7 +87,7 @@ $("#delColumn").on("click",function(){
|
|||
[% IF (saved1) %]
|
||||
var rtable = $("#table_reports").dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
'bAutoWidth': false,
|
||||
'sDom': 't<"bottom pager"ilpf>',
|
||||
'sDom': '<"top pager"ilpf>t<"bottom pager"ilpf>',
|
||||
'sPaginationType': 'four_button',
|
||||
'aaSorting': [[ 1, "asc" ]],
|
||||
'aoColumnDefs': [
|
||||
|
|
|
|||
Loading…
Reference in New Issue