From 8682a9f821a1ed9c3e27efe472dc172233c40a8f Mon Sep 17 00:00:00 2001 From: Aleisha Date: Fri, 29 Apr 2016 03:00:28 +0000 Subject: [PATCH] Bug 16389: Reports row limit should change upon option selection MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To test: 1) Run a report 2) Confirm there is no 'Update' button next to the 'Rows per page:' dropdown 3) Change the limit (i.e. to 10) 4) Confirm the page updates itself Sponsored-by: Catalyst IT Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../prog/en/modules/reports/guided_reports_start.tt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 eb81ba0743..9ff872adff 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 @@ -67,6 +67,9 @@ function load_group_subgroups () { } $(document).ready(function(){ + $('#limit').change(function() { + $('#limitselect').submit(); + }); $(".goback").on("click",function(e){ e.preventDefault(); @@ -807,7 +810,7 @@ canned reports and writing custom SQL reports.

[% IF ( unlimited_total ) %]

Total number of rows matching the (unlimited) query is [% unlimited_total %].

[% END %]
[% sql |html %]
-
+ @@ -816,7 +819,7 @@ canned reports and writing custom SQL reports.

[% END %] - [% limits = [ 10, 20, 50, 100, 200, 300, 400, 500, 1000 ] %] [% FOREACH l IN limits %] [% IF l == limit %] @@ -826,8 +829,6 @@ canned reports and writing custom SQL reports.

[% END %] [% END %] - -
[% pagination_bar %]
-- 2.39.5