Revision 6b68cf88
Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
864 | 864 |
# $form->{callback} ||= 'ap.pl?action=edit&id=' . $form->{id} if $myconfig{no_reset_arap}; |
865 | 865 |
# or a client config setting |
866 | 866 |
if ($::instance_conf->get_ap_add_doc && $::instance_conf->get_doc_storage) { |
867 |
my $add_doc_url = build_std_url("script=ap.pl", 'action=edit', 'id=' . E($form->{id})); |
|
867 |
my $add_doc_url = build_std_url("script=ap.pl", 'action=edit', 'id=' . E($form->{id}), 'fragment=ui-tabs-docs');
|
|
868 | 868 |
print $form->redirect_header($add_doc_url); |
869 | 869 |
} |
870 | 870 |
|
js/kivi.AP.js | ||
---|---|---|
51 | 51 |
}; |
52 | 52 |
|
53 | 53 |
}); |
54 |
|
|
55 |
$(function() { |
|
56 |
kivi.File.doc_tab_init('ap_tabs', 'ui-tabs-docs', $('#id').val(), 'purchase_invoice'); |
|
57 |
}); |
templates/webpages/ap/form_header.html | ||
---|---|---|
18 | 18 |
<input type="hidden" name="forex" value="[% forex | html %]"> |
19 | 19 |
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]"> |
20 | 20 |
|
21 |
<input type="hidden" name="id" value="[% id | html %]"> |
|
21 |
<input id="id" type="hidden" name="id" value="[% id | html %]">
|
|
22 | 22 |
<input type="hidden" name="sort" value="[% sort | html %]"> |
23 | 23 |
<input type="hidden" name="closedto" value="[% closedto | html %]"> |
24 | 24 |
<input type="hidden" name="locked" value="[% locked | html %]"> |
... | ... | |
63 | 63 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li> |
64 | 64 |
[%- END %] |
65 | 65 |
[%- IF id AND INSTANCE_CONF.get_doc_storage %] |
66 |
<li><a href="controller.pl?action=File/list&file_type=document&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
|
|
66 |
<li><a href="#ui-tabs-docs">[% 'Documents' | $T8 %]</a></li>
|
|
67 | 67 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li> |
68 | 68 |
[%- END %] |
69 | 69 |
[%- IF id %] |
... | ... | |
74 | 74 |
[%- END %] |
75 | 75 |
</ul> |
76 | 76 |
|
77 |
[%- IF id AND INSTANCE_CONF.get_doc_storage %] |
|
78 |
<div id="ui-tabs-docs"></div> |
|
79 |
[%- END %] |
|
80 |
|
|
77 | 81 |
<div id="ui-tabs-basic-data"> |
78 | 82 |
<table width="100%"> |
79 | 83 |
<tr valign="top"> |
Auch abrufbar als: Unified diff
Kreditorenbuchung: Bei Verbleib in der Maske nach Buchen Dokumenten-Tab laden