Revision ee561795
Von Bernd Bleßmann vor fast 11 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
293 | 293 |
$form->{oldvcname} = $form->{"old$form->{vc}"}; |
294 | 294 |
$form->{oldvcname} =~ s/--.*//; |
295 | 295 |
|
296 |
if ($form->{resubmit}) { |
|
297 |
my $dispatch_to_popup = ''; |
|
298 |
if ($form->{format} eq "html") { |
|
299 |
$dispatch_to_popup .= "window.open('about:blank','Beleg'); document.do.target = 'Beleg';"; |
|
300 |
} |
|
301 |
# emulate click for resubmitting actions |
|
302 |
$dispatch_to_popup .= "document.do.${_}.click(); " for grep { /^action_/ } keys %$form; |
|
296 |
my $dispatch_to_popup = ''; |
|
297 |
if ($form->{resubmit} && ($form->{format} eq "html")) { |
|
298 |
$dispatch_to_popup = "window.open('about:blank','Beleg'); document.do.target = 'Beleg';"; |
|
303 | 299 |
$dispatch_to_popup .= "document.do.submit();"; |
304 |
$::request->{layout}->add_javascripts_inline("\$(function(){$dispatch_to_popup})"); |
|
300 |
} elsif ($form->{resubmit}) { |
|
301 |
# emulate click for resubmitting actions |
|
302 |
$dispatch_to_popup = "document.do.${_}.click(); " for grep { /^action_/ } keys %$form; |
|
305 | 303 |
} |
304 |
$::request->{layout}->add_javascripts_inline("\$(function(){$dispatch_to_popup})"); |
|
305 |
|
|
306 | 306 |
|
307 | 307 |
my $follow_up_vc = $form->{ $form->{vc} eq 'customer' ? 'customer' : 'vendor' }; |
308 | 308 |
$follow_up_vc =~ s/--\d*\s*$//; |
Auch abrufbar als: Unified diff
resubmit beim Drucken für Lieferscheine ohne speichern gefixt (Opera/Chromium).
Behebt #1859.