From 8c35fec8562ac04583c61ae3090907cd4dab7525 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 14 Feb 2024 18:51:57 +0000 Subject: [PATCH] Bug 34478: (follow-up) Change invoice files delete link to POST Signed-off-by: Jonathan Druart --- .../prog/en/modules/acqui/invoice-files.tt | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice-files.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice-files.tt index c0e98e3f5e..bc1c864f7c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice-files.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice-files.tt @@ -75,8 +75,18 @@ [% f.date_uploaded | $KohaDates %] [% f.file_size | html %] - Delete - Download + +
+ [% INCLUDE 'csrf-token.inc' %] + + + + +
+ + Download [% END %] @@ -128,7 +138,7 @@ "searching": false, "dom": "t" })); - $("a.delete_file").click(function(){ + $(".delete_file").click(function(){ return ( confirm( _("Are you sure you want to delete this file ?") ) ); }); }); -- 2.39.5