From: Bernd Bleßmann Date: Mon, 22 Jan 2018 15:22:19 +0000 (+0100) Subject: E-Mail-Dialog: Template: js-Funktion zum Verschicken der Mail mitgeben können X-Git-Tag: release-3.5.4~496 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0f8e74b871122ef22fa94af78715fd360da203ce;p=kivitendo-erp.git E-Mail-Dialog: Template: js-Funktion zum Verschicken der Mail mitgeben können --- 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")) %]