Bug 32870: Fix cataloguing/value_builder/unimarc_field_225a_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:
parent
d0d4ce0e6b
commit
aab0da10d8
|
|
@ -35,8 +35,9 @@ sub plugin_javascript {
|
|||
my $function_name = $field_number;
|
||||
my $res = "
|
||||
<script>
|
||||
function Clic$function_name(index) {
|
||||
window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_225a_bis.pl&index=\"+index,\"unimarc225a\",'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_225a_bis.pl&index=\"+event.data.id,\"unimarc225a\",'width=500,height=400,toolbar=false,scrollbars=no');
|
||||
}
|
||||
</script>
|
||||
";
|
||||
|
|
|
|||
Loading…
Reference in New Issue