From 180b77bc8c2b1be95ed0f505920a16d1121d9080 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 4 Apr 2016 17:16:39 +0200 Subject: [PATCH] JS: weniger getElementById nutzen --- js/kivi.CustomerVendor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1