From b97d4a46ffab5f9ed6370068a85d3979c51e42d1 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 15 Jul 2025 13:12:03 +0000 Subject: [PATCH] Bug 40395: Refactor: Move suspend modal to its own tt BLOCK --- .../en/includes/modals/holds_table_modals.inc | 35 +++++++++++++++- .../prog/en/includes/patron-detail-tabs.inc | 1 + koha-tmpl/intranet-tmpl/prog/js/holds.js | 42 ------------------- 3 files changed, 35 insertions(+), 43 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/holds_table_modals.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/holds_table_modals.inc index 13276930439..da32ad5c8ea 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/modals/holds_table_modals.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/modals/holds_table_modals.inc @@ -41,4 +41,37 @@ -[% END %] \ No newline at end of file +[% END %] + +[% BLOCK 'suspend-hold-modal' %] + +[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc index ef6865313fa..0322d532061 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc @@ -171,6 +171,7 @@ [% PROCESS 'cancel-hold-modal' form_action = '/cgi-bin/koha/reserve/modrequest.pl' from_param = patronpage %] + [% PROCESS 'suspend-hold-modal' %] [% IF Koha.Preference('SuspendHoldsIntranet') %]
diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index c8acbb66a65..115ad576236 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -566,48 +566,6 @@ $(document).ready(function () { } } - $("body").append( - "\ - \ - " - ); - $("#suspend-modal-clear-date").on("click", function () { $("#suspend-modal-until").flatpickr().clear(); }); -- 2.39.5