X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9508e215c78bc172721e14d41d21858abb23672e..48412a8f9845627180a9689d74cdd30a9f7c803b:/js/kivi.CustomerVendor.js 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(); });