Revision 050cd2d2
Von Moritz Bunkus vor fast 7 Jahren hinzugefügt
templates/webpages/customer_vendor/form.html | ||
---|---|---|
57 | 57 |
|
58 | 58 |
<script type="text/javascript"> |
59 | 59 |
<!-- |
60 |
function submitInputButton(button)
|
|
60 |
function submitInputButton(action)
|
|
61 | 61 |
{ |
62 |
var hidden = document.createElement("input");
|
|
63 |
hidden.setAttribute("type", "hidden");
|
|
62 |
var $hidden = $("<input type='hidden' name='action' value='CustomerVendor/" + action + "'>"),
|
|
63 |
$form = $('#form');
|
|
64 | 64 |
|
65 |
if ( button.hasAttribute("name") ) |
|
66 |
hidden.setAttribute("name", button.getAttribute("name")); |
|
67 |
|
|
68 |
if ( button.hasAttribute("value") ) |
|
69 |
hidden.setAttribute("value", button.getAttribute("value")); |
|
70 |
|
|
71 |
|
|
72 |
button.form.appendChild(hidden); |
|
73 |
|
|
74 |
button.disabled = true; |
|
75 |
|
|
76 |
button.form.submit(); |
|
65 |
$form.append($hidden); |
|
66 |
$form.submit(); |
|
77 | 67 |
} |
78 | 68 |
|
79 | 69 |
function check_taxzone_and_ustid() { |
templates/webpages/customer_vendor/tabs/contacts.html | ||
---|---|---|
224 | 224 |
|
225 | 225 |
</table> |
226 | 226 |
|
227 |
[% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Contact'), name = 'action_delete_contact', class = 'submit') %]
|
|
227 |
[% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'), class = 'submit') %]
|
|
228 | 228 |
[% IF ( !SELF.contact.cp_id ) %] |
229 | 229 |
<script type="text/javascript"> |
230 | 230 |
$('#action_delete_contact').hide(); |
templates/webpages/customer_vendor/tabs/shipto.html | ||
---|---|---|
135 | 135 |
[% END %] |
136 | 136 |
</table> |
137 | 137 |
|
138 |
[% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Shipto'), name = 'action_delete_shipto', class = 'submit') %]
|
|
138 |
[% L.button_tag('submitInputButton("delete_shipto");', LxERP.t8('Delete Shipto'), class = 'submit') %]
|
|
139 | 139 |
[% IF ( !SELF.shipto.shipto_id ) %] |
140 | 140 |
<script type="text/javascript"> |
141 | 141 |
$('#action_delete_shipto').hide(); |
Auch abrufbar als: Unified diff
Kunden-/Lieferanten: Löschen von Ansprechpersonen, Lieferadressen gefixt