Revision 05691f2a
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
121 | 121 |
} |
122 | 122 |
|
123 | 123 |
if ($form->{print_and_save}) { |
124 |
$form->{action} = "print"; |
|
124 |
$form->{action} = "dispatcher"; |
|
125 |
$form->{action_print} = "1"; |
|
125 | 126 |
$form->{resubmit} = 1; |
126 | 127 |
$language_id = $form->{language_id}; |
127 | 128 |
$printer_id = $form->{printer_id}; |
... | ... | |
272 | 273 |
if ($form->{format} eq "html") { |
273 | 274 |
$form->{onload} = "window.open('about:blank','Beleg'); document.do.target = 'Beleg';"; |
274 | 275 |
} |
276 |
# emulate click for resubmitting actions |
|
277 |
$form->{onload} .= "document.do.${_}.click(); " for grep { /^action_/ } keys %$form; |
|
275 | 278 |
$form->{onload} .= "document.do.submit();" |
276 | 279 |
} |
277 | 280 |
|
Auch abrufbar als: Unified diff
Bugfix: Resubmit bei save_and_print war buggy.