Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c342d50b

Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt

  • ID c342d50b6999ca85ce15201b6d79c79b7f669fa3
  • Vorgänger 80591b8a
  • Nachfolger 8ae5d46d

Dialogbuchung: Bei Verbleib in der Maske nach Buchen Dokumenten-Tab laden

Unterschiede anzeigen:

bin/mozilla/gl.pl
1402 1402
    print $form->redirect_header($form->{callback});
1403 1403
    $form->redirect($locale->text('GL transaction posted.') . ' ' . $locale->text('ID') . ': ' . $form->{id});
1404 1404
  } elsif ($::instance_conf->get_gl_add_doc && $::instance_conf->get_doc_storage) {
1405
    my $add_doc_url = build_std_url("script=gl.pl", 'action=edit', 'id=' . E($form->{id}));
1405
    my $add_doc_url = build_std_url("script=gl.pl", 'action=edit', 'id=' . E($form->{id}), 'fragment=ui-tabs-docs');
1406 1406
    print $form->redirect_header($add_doc_url);
1407 1407
    $form->redirect($locale->text('GL transaction posted.') . ' ' . $locale->text('ID') . ': ' . $form->{id});
1408 1408
  }
js/kivi.File.js
393 393
    $('.overlay_div img').on('click', ns.download);
394 394
  };
395 395

  
396
  ns.doc_tab_init = function(tabs_id, doc_tab_id, id, object_type) {
397
    var url = 'controller.pl?action=File/list&file_type=document&object_type=' + object_type  + '&object_id=' + $('#id').val();
398

  
399
    $('#' + tabs_id).on('tabsbeforeactivate', function(e, ui) {
400
      if (ui.newPanel.attr('id') !== doc_tab_id) return;
401
      $('#' + doc_tab_id).html(kivi.t8('Loading...'));
402
      $('#' + doc_tab_id).load(url);
403
    });
404

  
405
    $('#' + tabs_id).on('tabscreate', function(e, ui) {
406
      if (ui.panel.attr('id') !== doc_tab_id) return;
407
      $('#' + doc_tab_id).html(kivi.t8('Loading...'));
408
      $('#' + doc_tab_id).load(url);
409
    });
410
  };
411

  
396 412
});
js/kivi.GL.js
29 29
    });
30 30
  };
31 31
});
32

  
33
$(function() {
34
  kivi.File.doc_tab_init('gl_tabs', 'ui-tabs-docs', $('#id').val(), 'gl_transaction');
35
});
js/locale/de.js
89 89
"July":"Juli",
90 90
"Jun":"Jun",
91 91
"June":"Juni",
92
"Loading...":"Wird geladen...",
92 93
"Map":"Karte",
93 94
"Mar":"März",
94 95
"March":"März",
js/locale/en.js
89 89
"July":"",
90 90
"Jun":"",
91 91
"June":"",
92
"Loading...":"",
92 93
"Map":"",
93 94
"Mar":"",
94 95
"March":"",
templates/webpages/gl/form_header.html
31 31
<input type="hidden" name="follow_up_trans_info_1" value="[% id | html %]">
32 32
<input type="hidden" name="follow_up_rowcount" value="1">
33 33

  
34
<div id="ir_tabs" class="tabwidget">
34
<div id="gl_tabs" class="tabwidget">
35 35
 <ul>
36 36
  <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
37 37
[%- IF INSTANCE_CONF.get_webdav %]
......
39 39
[%- END %]
40 40
[%- IF id %]
41 41
[%- IF INSTANCE_CONF.get_doc_storage %]
42
  <li><a href="controller.pl?action=File/list&file_type=document&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
42
  <li><a href="#ui-tabs-docs">[% 'Documents' | $T8 %]</a></li>
43 43
  <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=gl_transaction&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
44 44
[%- END %]
45 45
[%- END %]
46 46
 </ul>
47

  
48
[%- IF INSTANCE_CONF.get_doc_storage %]
49
  <div id="ui-tabs-docs"></div>
50
[%- END %]
51

  
47 52
 <div id="ui-tabs-basic-data">
48 53

  
49 54
<table width=100%>

Auch abrufbar als: Unified diff