Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1ccc89c8

Von Bernd Bleßmann vor fast 6 Jahren hinzugefügt

  • ID 1ccc89c81f95c77ec583c973dec38b56177c81ab
  • Vorgänger b92bc207
  • Nachfolger 00402ae6

calculate_qty (Formel): Input- und Formel-Feld auch als Dom-Id übergeben können

Unterschiede anzeigen:

bin/mozilla/io.pl
319 319
    my $qty_dec = ($form->{"qty_$i"} =~ /\.(\d+)/) ? length $1 : 2;
320 320

  
321 321
    $column_data{qty}  = $cgi->textfield(-name => "qty_$i", -size => 5, -class => "numeric", -value => $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec));
322
    $column_data{qty} .= $cgi->button(-onclick => "calculate_qty_selection_window('qty_$i', 'formel_$i')", -value => $locale->text('*/'))
322
    $column_data{qty} .= $cgi->button(-onclick => "calculate_qty_selection_window('qty_$i', '', 'formel_$i')", -value => $locale->text('*/'))
323 323
                       . $cgi->hidden(-name => "formel_$i", -value => $form->{"formel_$i"})
324 324
      if $form->{"formel_$i"};
325 325

  

Auch abrufbar als: Unified diff