From 57397a50598ad77ed115181f38155a01f6eaebc6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 12 Jul 2016 14:07:18 -0400 Subject: [PATCH] Bug 16906 - Add DataTables pagination and filter to top of saved SQL reports table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 16752cc..d5968c8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -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': [ -- 1.7.10.4