]> wagnertech.de Git - mfinanz.git/commitdiff
ClientJS-Erzeugung: Unterstützung für <ARGn> mit "n" eine beliebige Ziffer
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 31 Jul 2013 10:25:43 +0000 (12:25 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 31 Jul 2013 10:41:11 +0000 (12:41 +0200)
scripts/generate_client_js_actions.pl

index d2219a1d1d1929cdd20516ff8bc84bd71e71e145..448a42c51663e776c1418cdbe1f7ba309bc8a878 100755 (executable)
@@ -47,6 +47,7 @@ foreach my $action (@actions) {
     $call        =~ s/<TARGET>/'action[1]'/eg;
     $call        =~ s/<FUNCTION>/$function/eg;
     $call        =~ s/<ARGS>/$args/eg;
+    $call        =~ s/<ARG(\d+)>/'action[' . ($1 + 1) . ']'/eg;
 
     $output .= $call . ";\n";
     $first   = 0;