$('#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();
});
};
this.inline_report = function(target, source, data){
+// alert("HALLO S " + source + " --T " + target + " tt D " + data);
$.ajax({
url: source,
success: function (rsp) {
'filter.all:substr:multi::ilike': term,
'filter.obsolete': 0,
current: this.$real.val(),
- type: this.o.type,
+ type: this.o.cv_type,
};
},
set_item: function(item) {
},
select: function(event, ui) {
self.set_item(ui.item);
+ if (self.o.action.commit_one) {
+ self.run_action(self.o.action.commit_one);
+ }
},
search: function(event, ui) {
if ((event.which == KEY.SHIFT) || (event.which == KEY.CTRL) || (event.which == KEY.ALT))