projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
epic-ts
[kivitendo-erp.git]
/
js
/
kivi.CustomerVendor.js
diff --git
a/js/kivi.CustomerVendor.js
b/js/kivi.CustomerVendor.js
index
2c19287
..
e8cd923
100644
(file)
--- a/
js/kivi.CustomerVendor.js
+++ b/
js/kivi.CustomerVendor.js
@@
-67,10
+67,14
@@
namespace('kivi.CustomerVendor', function(ns) {
kivi.CustomerVendor.setCustomVariablesFromAJAJ(data.contact_cvars, 'contact_cvars_');
kivi.CustomerVendor.setCustomVariablesFromAJAJ(data.contact_cvars, 'contact_cvars_');
- if ( contactId )
+ if ( contactId )
{
$('#action_delete_contact').show();
$('#action_delete_contact').show();
- else
+ $('#contact_cp_title_select').val(contact['cp_title']);
+ $('#contact_cp_abteilung_select').val(contact['cp_abteilung']);
+ } else {
$('#action_delete_contact').hide();
$('#action_delete_contact').hide();
+ $('#contact_cp_title_select, #contact_cp_abteilung_select').val('');
+ }
if (data.contact.disable_cp_main === 1)
$("#contact_cp_main").prop("disabled", true);
else
if (data.contact.disable_cp_main === 1)
$("#contact_cp_main").prop("disabled", true);
else
@@
-79,7
+83,6
@@
namespace('kivi.CustomerVendor', function(ns) {
params.onFormSet();
});
params.onFormSet();
});
- $('#contact_cp_title_select, #contact_cp_abteilung_select').val('');
};
var mapSearchStmts = [
};
var mapSearchStmts = [