From 1f4056196df01a3a391d8e87d5d7a056a1010f5f 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 1a949d3c4b..30e9e0651e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -105,6 +105,10 @@ :disabled { opacity: 0.5; } + #cancellation-reason-div { + display: flex; + align-items: center; + } [% END %] @@ -1223,7 +1227,7 @@
- +
[% FOREACH biblioloo IN biblioloop %] @@ -1471,12 +1475,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