Bug 32812: Fix cataloguing/value_builder/barcode_manual.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>
This commit is contained in:
Julian Maurice 2023-02-03 11:58:51 +01:00 committed by Tomas Cohen Arazi
parent 8327b7d86e
commit 1aaf68d9e5
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -66,7 +66,8 @@ END_OF_JS
my $js = <<END_OF_JS;
<script>
function Click$function_name(id) {
function Click$function_name(event) {
const id = event.data.id;
$scr
return false;
}