Bug 32840: Fix cataloguing/value_builder/unimarc_field_123g.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: David Nind <david@davidnind.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
3fc800d91a
commit
1f152facf7
1 changed files with 4 additions and 3 deletions
|
@ -32,9 +32,10 @@ my ($dbh,$record,$tagslib,$field_number) = @_;
|
|||
my $function_name= $field_number;
|
||||
my $res="
|
||||
<script>
|
||||
function Clic$function_name(i) {
|
||||
defaultvalue=document.getElementById(\"$field_number\").value;
|
||||
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_123g.pl&index=$field_number&result=\"+defaultvalue,\"unimarc_field_123g\",'width=1000,height=375,toolbar=false,scrollbars=yes');
|
||||
function Clic$function_name(event) {
|
||||
event.preventDefault();
|
||||
defaultvalue=document.getElementById(event.data.id).value;
|
||||
newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_123g.pl&index=\" + event.data.id + \"&result=\"+defaultvalue,\"unimarc_field_123g\",'width=1000,height=375,toolbar=false,scrollbars=yes');
|
||||
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue