From e99094946a714b4dd472ab16c448bb597c14c36c Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 20 Oct 2016 23:22:07 +0200 Subject: [PATCH] Bug 5260: QA follow-up - Ask for confirmation before sending e-mail With this patch there will be a confirmation alert when clicking on 'E-mail order'. --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index 6a530b1..22d68ed 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -51,6 +51,12 @@ e.preventDefault(); transfer_order_popup( $(this).data("ordernumber")); }); + + var MSG_CONFIRM = _("Are you sure you want to send an order e-mail to the vendor?"); + $(".confirm").on("click",function(){ + return confirmDelete(MSG_CONFIRM); + }); + }); //]]> @@ -206,7 +212,7 @@
- +
[% END %] -- 2.7.4