Spezifisches Recht für CSV-Import
[kivitendo-erp.git] / templates / webpages / order / tabs / _email_dialog.html
index a69e1f5..27b1ccd 100644 (file)
@@ -1,8 +1,7 @@
 [%- USE T8 %][%- USE HTML %][%- USE L %][%- USE LxERP %]
-
-<form method="post" id="email_form" method="POST">
 <h2>[%- 'E-mail' | $T8 %]&nbsp;[%- SELF.type | $T8 %]</h2>
 
+<form method="post" id="email_form" method="POST">
 <table width="100%">
   <tr>
     <td>
 
 <br>
 [% L.hidden_tag('action', 'Order/dispatch') %]
-[% L.button_tag('send_email()', LxERP.t8('Continue')) %]
-<a href="#" onclick="close_email_dialog();">[%- LxERP.t8("Cancel") %]</a>
-
-<script type='text/javascript'>
-function send_email() {
-  var data = $('#order_form').serializeArray();
-  data = data.concat($('#email_form').serializeArray());
-  data.push({ name: 'action', value: 'Order/send_email' });
-  $.post("controller.pl", data, kivi.eval_json_result);
-}
-</script>
+[% L.button_tag('kivi.Order.send_email()', LxERP.t8('Continue')) %]
+<a href="#" onclick="kivi.Order.close_email_dialog();">[%- LxERP.t8("Cancel") %]</a>
 
 </form>