Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f3a1a992

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID f3a1a992c1548fcd85129906ba0eb94ae3fc87d7
  • Vorgänger c6d59689
  • Nachfolger 25ca3f8a

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