E-Mail-Dialog: Template: js-Funktion zum Verschicken der Mail mitgeben können
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 22 Jan 2018 15:22:19 +0000 (16:22 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 29 Jan 2018 15:41:50 +0000 (16:41 +0100)
bin/mozilla/io.pl
templates/webpages/common/_send_email_dialog.html

index 6be678f..b4ae880 100644 (file)
@@ -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();
index e875af6..7b5e8bd 100644 (file)
@@ -99,6 +99,6 @@
 <div id="email_form_print_options"></div>
 
 <p>
- [% 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")) %]
 </p>