From 7ab9fa28f6e20eaeb3d515a6e01e457c8c8a3ce1 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 | 34 ++++++++++++++- .../prog/en/includes/patron-detail-tabs.inc | 1 + koha-tmpl/intranet-tmpl/prog/js/holds.js | 42 ------------------- 3 files changed, 34 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..7beb583dff1 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,36 @@ -[% 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 a1833400a2f..b6e9d988380 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -570,48 +570,6 @@ $(document).ready(function () { } } - $("body").append( - "\ - \ - " - ); - $("#suspend-modal-clear-date").on("click", function () { $("#suspend-modal-until").flatpickr().clear(); }); -- 2.39.5