Bug 32853: Fix cataloguing/value_builder/unimarc_field_125.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
4fa7d59c61
commit
826aeaf22f
1 changed files with 4 additions and 3 deletions
|
@ -38,9 +38,10 @@ my ($dbh,$record,$tagslib,$field_number) = @_;
|
||||||
my $function_name= $field_number;
|
my $function_name= $field_number;
|
||||||
my $res="
|
my $res="
|
||||||
<script>
|
<script>
|
||||||
function Clic$function_name(i) {
|
function Clic$function_name(event) {
|
||||||
defaultvalue=document.getElementById(\"$field_number\").value;
|
event.preventDefault();
|
||||||
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_100.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_100\",'width=500,height=400,toolbar=false,scrollbars=yes');
|
defaultvalue=document.getElementById(event.data.id).value;
|
||||||
|
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_100.pl&index=\" + event.data.id + \"&result=\"+defaultvalue,\"unimarc_field_100\",'width=500,height=400,toolbar=false,scrollbars=yes');
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue