From d83dc738f2989474359bfcd67decb449da2f5896 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 Signed-off-by: Brendan Lawlor --- .../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 1dd563e992..6c6c27c8a0 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 %] @@ -1299,7 +1303,7 @@
- + [% IF ( CAN_user_reserveforothers_alter_hold_targets ) %]
@@ -1614,12 +1618,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