From 28a7aff46c1bdaa4af22c11fdf14d3c0c331efee Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 20 Aug 2025 17:36:54 +0000 Subject: [PATCH] Bug 40679: Fix display of cancellation reason dropdown To test: 1. Have some holds 2. Go to reserve/request.pl?biblionumber=x for your biblionumber 3. Change at least one hold priority to 'del' 4. Notice the toolbar above the table with Update Hold, Cancel selected, Cancellation reason now looks wonky. 5. APPLY PATCH 6. Try again, the display of the toolbar should be better. Signed-off-by: Eric Garcia --- .../prog/en/modules/reserve/request.tt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 02dd27aa3b9..0bd8040aaf6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -113,6 +113,10 @@ .rank-request { width: 50px; } + #cancellation-reason-div { + display: flex; + align-items: center; + } [% END %] @@ -1231,7 +1235,7 @@
- +
[% FOREACH biblioloo IN biblioloop %] @@ -1440,12 +1444,12 @@ $.fn.select2.defaults.set("dropdownAutoWidth", true ); $(document).ready(function() { - $('#cancellation-reason-fieldset').hide(); + $('#cancellation-reason-div').hide(); $('.rank-request').on('change', function() { if ( $(".rank-request option:selected[value='del']").length ) { - $('#cancellation-reason-fieldset').show(); + $('#cancellation-reason-div').show(); } else { - $('#cancellation-reason-fieldset').hide(); + $('#cancellation-reason-div').hide(); } }); -- 2.39.5