From 08b926462cfa5c4b33b276bf81cae3f811943e16 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 17 Sep 2020 19:18:53 +0000 Subject: [PATCH] Bug 29186: Move reports result limit menu into toolbar This patch creates a new Bootstrap button menu for selecting the number of search results to be shown. This replaces the HTML + + [% FOREACH p IN sql_params %] + + [% END %] + [% FOREACH n IN param_names %] + + [% END %] + + + + [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) || ( unlimited_total ) > limit %] +
+ [% IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] +
+ + +
+ [% END # /IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] + + [% IF ( unlimited_total > limit ) %] +
+ + -
-

- [% END # /IF ( batch_biblionumbers || batch_itemnumbers || batch_cardnumbers ) %] - [% END # UNLESS ( errors ) %] - [% END # IF ( execute ) %] - -
- - + +
+ [% END # /IF ( unlimited_total > limit ) %] + + [% END # /IF batch operations || ( unlimited_total > limit ) %] - [% FOREACH p IN sql_params %] - - [% END %] - [% FOREACH n IN param_names %] - - [% END %] +
+ [% pagination_bar | $raw %] +
- - - + [% END # UNLESS ( errors ) %] + [% END # IF ( execute ) %] -
[% pagination_bar | $raw %]
[% UNLESS ( errors ) %] @@ -2023,6 +2045,12 @@ var reportid = $(this).data("reportid"); previewSql( reportid ); }); + $(".limitselect").on("click", function(){ + var limit = $(this).data("limit"); + $("#limit").val( limit ); + $("#limitselect").submit(); + }); + }); function tabsInit( ui, rtable ){ -- 2.20.1