From 0f8e74b871122ef22fa94af78715fd360da203ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 22 Jan 2018 16:22:19 +0100 Subject: [PATCH] =?utf8?q?E-Mail-Dialog:=20Template:=20js-Funktion=20zum?= =?utf8?q?=20Verschicken=20der=20Mail=20mitgeben=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/io.pl | 1 + templates/webpages/common/_send_email_dialog.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 6be678fd1..b4ae880d1 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -2000,6 +2000,7 @@ sub show_sales_purchase_email_dialog { subject => $::form->generate_email_subject, message => $::form->generate_email_body, attachment_filename => $::form->generate_attachment_filename, + js_send_function => 'kivi.SalesPurchase.send_email()', }; my %files = _get_files_for_email_dialog(); diff --git a/templates/webpages/common/_send_email_dialog.html b/templates/webpages/common/_send_email_dialog.html index e875af6b4..7b5e8bdba 100644 --- a/templates/webpages/common/_send_email_dialog.html +++ b/templates/webpages/common/_send_email_dialog.html @@ -99,6 +99,6 @@

- [% L.button_tag("kivi.SalesPurchase.send_email()", LxERP.t8("Send email")) %] + [% L.button_tag(email_form.js_send_function, LxERP.t8("Send email")) %] [% L.button_tag("\$('#send_email_dialog').dialog('close');", LxERP.t8("Abort")) %]

-- 2.20.1