Bug 32813: Fix cataloguing/value_builder/barcode.pl
Use event parameter instead of id. This is part of the refactoring happening in bug 30975 Test plan: 1. Verify that the plugin continues to work as before Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit8327b7d86e) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit47272d2239) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit40acf0bcf1) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
3d83c57eb3
commit
6d0d7024dd
|
|
@ -86,14 +86,16 @@ END_OF_JS
|
|||
|
||||
my $js = <<END_OF_JS;
|
||||
<script>
|
||||
|
||||
function Focus$function_name(id, force) {
|
||||
function set_barcode(id, force) {
|
||||
$scr
|
||||
}
|
||||
|
||||
function Click$function_name(id) {
|
||||
Focus$function_name(id, 1);
|
||||
return false;
|
||||
function Focus$function_name(event) {
|
||||
set_barcode(event.data.id, false);
|
||||
}
|
||||
|
||||
function Click$function_name(event) {
|
||||
set_barcode(event.data.id, true);
|
||||
}
|
||||
</script>
|
||||
END_OF_JS
|
||||
|
|
|
|||
Loading…
Reference in New Issue