X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=js%2Fkivi.CustomerVendor.js;h=f809e3498fbbb441d90a73d690c63018e64dedda;hb=a4d4aaa15dbe5d4c050049186c6d4b762dfa52fb;hp=d489d07d327d5772794958dbb7f8753206d41715;hpb=9508e215c78bc172721e14d41d21858abb23672e;p=kivitendo-erp.git diff --git a/js/kivi.CustomerVendor.js b/js/kivi.CustomerVendor.js index d489d07d3..f809e3498 100644 --- a/js/kivi.CustomerVendor.js +++ b/js/kivi.CustomerVendor.js @@ -71,7 +71,10 @@ namespace('kivi.CustomerVendor', function(ns) { $('#action_delete_contact').show(); else $('#action_delete_contact').hide(); - + if (data.contact.disable_cp_main === 1) + $("#contact_cp_main").prop("disabled", true); + else + $("#contact_cp_main").prop("disabled", false); if ( params.onFormSet ) params.onFormSet(); });