From 4cb7df34485cb2d964861a3e5e2ee01e65d9be9a Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 13 Jan 2026 14:31:38 -0500 Subject: [PATCH] Bug 41570: (follow-up) i18n correction, course deletion fix The template's i18n function, I18N.tnx, doesn't work with JavaScript variables, so I've updated it to use the template variable. I also found that I couldn't properly test the course deletion function without fixing a problem which exists in main: The delete course button didn't trigger the confirmation, and the event which was supposed to trigger the confirmation was attached to the whole form. The confirmation is now triggered on form submit. Signed-off-by: Owen Leonard --- .../en/modules/course_reserves/course-details.tt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index 93b5d06b5b0..7e9ae6ee0ec 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -84,8 +84,8 @@ [% INCLUDE 'csrf-token.inc' %] + - Delete course [% END %] [% END %] @@ -362,18 +362,14 @@ [% INCLUDE 'datatables.inc' %]