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>
(cherry picked from commit 166f13b88e)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
This commit is contained in:
Julian Maurice 2023-02-03 11:58:55 +01:00 committed by Jacob O'Mara
parent 7f50e5284e
commit 57b84056ec

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>
";