From 5fee6f18a48e3a6214f6095f52feb87ab222bfaf 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 ) %] @@ -2022,6 +2044,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.39.5