Revision 180b77bc
Von Moritz Bunkus vor mehr als 8 Jahren hinzugefügt
js/kivi.CustomerVendor.js | ||
---|---|---|
8 | 8 |
|
9 | 9 |
$.getJSON(url, function(data) { |
10 | 10 |
for(var key in data) |
11 |
$(document.getElementById('shipto_'+ key)).val(data[key]);
|
|
11 |
$('#shipto_'+ key).val(data[key]);
|
|
12 | 12 |
|
13 | 13 |
$('#action_delete_shipto').show(); |
14 | 14 |
|
... | ... | |
70 | 70 |
$.getJSON(url, function(data) { |
71 | 71 |
var contact = data.contact; |
72 | 72 |
for(var key in contact) |
73 |
$(document.getElementById('contact_'+ key)).val(contact[key])
|
|
73 |
$('#contact_'+ key).val(contact[key])
|
|
74 | 74 |
|
75 | 75 |
kivi.CustomerVendor.setCustomVariablesFromAJAJ(data.contact_cvars); |
76 | 76 |
|
Auch abrufbar als: Unified diff
JS: weniger getElementById nutzen