X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdo.pl;h=fc38c52ad7fa78e541a1040edee685ab690e4627;hb=fa2cf4e6139505b9619efb296b2680c7fd664ae0;hp=5de295916dc558815c2c594c8ca9467828c82b8f;hpb=473431b1a1008e2cdcb5d49bb04227f5b0004852;p=kivitendo-erp.git diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index 5de295916..fc38c52ad 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -460,9 +460,9 @@ sub form_header { if ($form->{resubmit} && ($form->{format} eq "html")) { $dispatch_to_popup = "window.open('about:blank','Beleg'); document.do.target = 'Beleg';"; $dispatch_to_popup .= "document.do.submit();"; - } elsif ($form->{resubmit}) { + } elsif ($form->{resubmit} && $form->{action_print}) { # emulate click for resubmitting actions - $dispatch_to_popup = "document.do.${_}.click(); " for grep { /^action_/ } keys %$form; + $dispatch_to_popup = "kivi.SalesPurchase.show_print_dialog(); kivi.SalesPurchase.print_record();"; } $::request->{layout}->add_javascripts_inline("\$(function(){$dispatch_to_popup});");