Lines 39-53
my $builder = sub {
Link Here
|
39 |
my $js = <<END_OF_JS; |
39 |
my $js = <<END_OF_JS; |
40 |
<script> |
40 |
<script> |
41 |
|
41 |
|
42 |
function Focus$function_name(id, force) { |
42 |
function set_stocknumber(id, force) { |
43 |
if (\$('#' + id).val() == '' || force) { |
43 |
if (\$('#' + id).val() == '' || force) { |
44 |
\$('#' + id).val('$nextnum'); |
44 |
\$('#' + id).val('$nextnum'); |
45 |
} |
45 |
} |
46 |
} |
46 |
} |
47 |
|
47 |
|
|
|
48 |
function Focus$function_name(event) { |
49 |
set_stocknumber(event.data.id, false); |
50 |
} |
51 |
|
48 |
function Click$function_name(event) { |
52 |
function Click$function_name(event) { |
49 |
Focus$function_name(event.data.id, 1); |
53 |
set_stocknumber(event.data.id, true); |
50 |
return false; |
|
|
51 |
} |
54 |
} |
52 |
</script> |
55 |
</script> |
53 |
END_OF_JS |
56 |
END_OF_JS |
54 |
- |
|
|