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 |
event.preventDefault(); |
50 |
return false; |
54 |
set_stocknumber(event.data.id, true); |
51 |
} |
55 |
} |
52 |
</script> |
56 |
</script> |
53 |
END_OF_JS |
57 |
END_OF_JS |
54 |
- |
|
|