From: Bernd Bleßmann Date: Thu, 8 Jul 2021 11:17:15 +0000 (+0200) Subject: Kreditorenbuchung: Bei Verbleib in der Maske nach Buchen Dokumenten-Tab laden X-Git-Tag: kivitendo-mebil_0.1-0~9^2~45 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6b68cf8878eab02fbfeb3c14c5136fe69716e0b3;p=kivitendo-erp.git Kreditorenbuchung: Bei Verbleib in der Maske nach Buchen Dokumenten-Tab laden --- diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 710013e39..d6dd24ebe 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -864,7 +864,7 @@ sub post { # $form->{callback} ||= 'ap.pl?action=edit&id=' . $form->{id} if $myconfig{no_reset_arap}; # or a client config setting if ($::instance_conf->get_ap_add_doc && $::instance_conf->get_doc_storage) { - my $add_doc_url = build_std_url("script=ap.pl", 'action=edit', 'id=' . E($form->{id})); + my $add_doc_url = build_std_url("script=ap.pl", 'action=edit', 'id=' . E($form->{id}), 'fragment=ui-tabs-docs'); print $form->redirect_header($add_doc_url); } diff --git a/js/kivi.AP.js b/js/kivi.AP.js index 463334ab1..90ef829ee 100644 --- a/js/kivi.AP.js +++ b/js/kivi.AP.js @@ -51,3 +51,7 @@ namespace('kivi.AP', function(ns){ }; }); + +$(function() { + kivi.File.doc_tab_init('ap_tabs', 'ui-tabs-docs', $('#id').val(), 'purchase_invoice'); +}); diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index da6d4d5fb..f3aa55e5d 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -18,7 +18,7 @@ - + @@ -63,7 +63,7 @@
  • [% 'WebDAV' | $T8 %]
  • [%- END %] [%- IF id AND INSTANCE_CONF.get_doc_storage %] -
  • [% 'Documents' | $T8 %]
  • +
  • [% 'Documents' | $T8 %]
  • [% 'Attachments' | $T8 %]
  • [%- END %] [%- IF id %] @@ -74,6 +74,10 @@ [%- END %] +[%- IF id AND INSTANCE_CONF.get_doc_storage %] +
    +[%- END %] +