projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e18c5
)
JS: weniger getElementById nutzen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 4 Apr 2016 15:16:39 +0000
(17:16 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 4 Apr 2016 15:16:39 +0000
(17:16 +0200)
js/kivi.CustomerVendor.js
patch
|
blob
|
history
diff --git
a/js/kivi.CustomerVendor.js
b/js/kivi.CustomerVendor.js
index
b192d17
..
c6671c8
100644
(file)
--- a/
js/kivi.CustomerVendor.js
+++ b/
js/kivi.CustomerVendor.js
@@
-8,7
+8,7
@@
namespace('kivi.CustomerVendor', function(ns) {
$.getJSON(url, function(data) {
for(var key in data)
- $(
document.getElementById('shipto_'+ key)
).val(data[key]);
+ $(
'#shipto_'+ key
).val(data[key]);
$('#action_delete_shipto').show();
@@
-70,7
+70,7
@@
namespace('kivi.CustomerVendor', function(ns) {
$.getJSON(url, function(data) {
var contact = data.contact;
for(var key in contact)
- $(
document.getElementById('contact_'+ key)
).val(contact[key])
+ $(
'#contact_'+ key
).val(contact[key])
kivi.CustomerVendor.setCustomVariablesFromAJAJ(data.contact_cvars);