From cf828af0a0de69ce9ce99f97ece921d7df98c69c 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 Signed-off-by: Lucas Gass (cherry picked from commit fd1adddb3502631cd1fac0398cc1246c25765c12) Signed-off-by: Paul Derscheid --- .../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 02dd27aa3b..0bd8040aaf 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(); } });