From: Moritz Bunkus Date: Mon, 4 Apr 2016 15:16:39 +0000 (+0200) Subject: JS: weniger getElementById nutzen X-Git-Tag: release-3.4.1~251 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=180b77bc8c2b1be95ed0f505920a16d1121d9080;p=kivitendo-erp.git JS: weniger getElementById nutzen --- diff --git a/js/kivi.CustomerVendor.js b/js/kivi.CustomerVendor.js index b192d1778..c6671c8fe 100644 --- 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);