Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6e7466ec

Von Tamino Steinert vor 11 Monaten hinzugefügt

  • ID 6e7466ec196b816a4e76b4c84f2b704b9aec2b9d
  • Vorgänger a0453e90
  • Nachfolger 9c89da58

EmailJournal: Workflow: Auswahl von Beleg optimiert

Unterschiede anzeigen:

js/kivi.EmailJournal.js
3 3

  
4 4
  ns.update_attachment_preview = function() {
5 5
    let $form = $('#record_action_form');
6
    if ($form == undefined) { return; }
7 6

  
8 7
    let data = $form.serializeArray();
9 8
    data.push({ name: 'action', value: 'EmailJournal/update_attachment_preview' });
......
32 31
  ns.update_action_selection = function() {
33 32
    let record_action = $('#action_selection').val();
34 33

  
35
    $('#record_div').hide();
36
    $('#no_record_div').hide();
34
    $('#record_selection_div').hide();
35
    $('#create_new_div').hide();
37 36

  
38 37
    if (record_action == 'create_new') {
39
      $('#no_record_div').show();
38
      $('#create_new_div').show();
39
      $('#create_new_div').css('display','inline-block')
40 40
    } else {
41
      $('#record_div').show();
41
      $('#record_selection_div').show();
42 42
    }
43 43
  }
44 44

  
......
51 51
    $.post("controller.pl", data, kivi.eval_json_result);
52 52
  }
53 53

  
54
  ns.apply_action_with_attachment = function() {
54
  ns.apply_action_with_attachment = function(record_id, record_type) {
55 55
    let data = $('#record_action_form').serializeArray();
56 56
    data.push({ name: 'action', value: 'EmailJournal/apply_record_action' });
57
    data.push({ name: 'record_id', value: record_id });
58
    data.push({ name: 'record_type', value: record_type });
57 59

  
58 60
    $.post("controller.pl", data, kivi.eval_json_result);
59 61
  }
60 62
});
61

  
62
$(function() {
63
  kivi.EmailJournal.update_attachment_preview();
64
});

Auch abrufbar als: Unified diff