X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/16e18c505f8e209f3617485697b5827cd6d038d4..f442cef2db28ff75bd652667e24d77a9f0ba39c5:/js/kivi.CustomerVendor.js diff --git a/js/kivi.CustomerVendor.js b/js/kivi.CustomerVendor.js index b192d1778..1b5bba2f6 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(); @@ -46,8 +46,6 @@ namespace('kivi.CustomerVendor', function(ns) { var cvar = cvars[key]; var $ctrl = $('#contact_cvars_'+ key); - console.log($ctrl, cvar); - if (cvar.type == 'bool') $ctrl.prop('checked', cvar.value == 1 ? 'checked' : ''); @@ -70,7 +68,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);