Revision 19e2bb1a
Von Tamino Steinert vor 11 Monaten hinzugefügt
js/kivi.EmailJournal.js | ||
---|---|---|
26 | 26 |
$('#vendor_div').show(); |
27 | 27 |
$('#vendor_record_types_div').show(); |
28 | 28 |
} |
29 |
kivi.EmailJournal.update_record_type_selection(customer_vendor);
|
|
29 |
kivi.EmailJournal.update_record_list();
|
|
30 | 30 |
} |
31 | 31 |
|
32 | 32 |
ns.update_action_selection = function() { |
33 | 33 |
let record_action = $('#action_selection').val(); |
34 | 34 |
|
35 |
$('#record_type_div').hide();
|
|
36 |
$('#no_record_type_div').hide();
|
|
35 |
$('#record_div').hide(); |
|
36 |
$('#no_record_div').hide(); |
|
37 | 37 |
|
38 | 38 |
if (record_action == 'create_new') { |
39 |
$('#no_record_type_div').show();
|
|
39 |
$('#no_record_div').show(); |
|
40 | 40 |
} else { |
41 |
$('#record_type_div').show();
|
|
41 |
$('#record_div').show(); |
|
42 | 42 |
} |
43 | 43 |
} |
44 | 44 |
|
45 |
ns.update_record_type_selection = function(customer_vendor) {
|
|
46 |
let record_type = $('#' + customer_vendor + '_record_type_selection').val();
|
|
45 |
ns.update_record_list = function() {
|
|
46 |
let $form = $('#record_action_form');
|
|
47 | 47 |
|
48 |
$('.record_type').hide(); |
|
49 |
if (record_type != '') { |
|
50 |
$('#' + record_type + '_div').show(); |
|
51 |
} else { |
|
52 |
$('#record_type_placeholder_div').show(); |
|
53 |
} |
|
48 |
let data = $form.serializeArray(); |
|
49 |
data.push({ name: 'action', value: 'EmailJournal/update_record_list' }); |
|
50 |
|
|
51 |
$.post("controller.pl", data, kivi.eval_json_result); |
|
54 | 52 |
} |
55 | 53 |
|
56 | 54 |
ns.apply_action_with_attachment = function() { |
Auch abrufbar als: Unified diff
EmailJournal: Workflow: Vorschlag der passenden Belege