Bug 32868: Fix cataloguing/value_builder/unimarc_field_210c_bis.pl

Use event parameter

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: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Julian Maurice 2023-02-03 11:58:55 +01:00 committed by Tomas Cohen Arazi
parent c9ddf42075
commit 166f13b88e
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -54,8 +54,9 @@ sub plugin_javascript {
<script>
function Clic$function_name(index) {
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_210c_bis.pl&index=\"+index,\"unimarc210c\",'width=500,height=400,toolbar=false,scrollbars=no');
function Clic$function_name(event) {
event.preventDefault();
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_210c_bis.pl&index=\"+event.data.id,\"unimarc210c\",'width=500,height=400,toolbar=false,scrollbars=no');
}
</script>
";