Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3c255f28

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

  • ID 3c255f2892121da44822fd2c391a4ed5b333ff7e
  • Vorgänger 18407da4
  • Nachfolger b16556cc

onload aus do.pl und oe.pl entfernt

Unterschiede anzeigen:

bin/mozilla/do.pl
297 297
  $form->{oldvcname}         =  $form->{"old$form->{vc}"};
298 298
  $form->{oldvcname}         =~ s/--.*//;
299 299

  
300
  $form->{onload} = "";
301 300
  if ($form->{resubmit}) {
301
    my $dispatch_to_popup = '';
302 302
    if ($form->{format} eq "html") {
303
      $form->{onload} = "window.open('about:blank','Beleg'); document.do.target = 'Beleg';";
303
      $dispatch_to_popup .= "window.open('about:blank','Beleg'); document.do.target = 'Beleg';";
304 304
    }
305 305
    # emulate click for resubmitting actions
306
    $form->{onload} .= "document.do.${_}.click(); " for grep { /^action_/ } keys %$form;
307
    $form->{onload} .= "document.do.submit();"
306
    $dispatch_to_popup .= "document.do.${_}.click(); " for grep { /^action_/ } keys %$form;
307
    $dispatch_to_popup .= "document.do.submit();";
308
    $::request->{layout}->add_javascripts_inline("\$(function(){$dispatch_to_popup)");
308 309
  }
309 310

  
310 311
  my $follow_up_vc                =  $form->{ $form->{vc} eq 'customer' ? 'customer' : 'vendor' };

Auch abrufbar als: Unified diff