Bug 32824: Fix cataloguing/value_builder/unimarc_field_100.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> (cherry picked from commit2d25c2860c) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> (cherry picked from commit8b19e1c6a7) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
bafbe0c1b7
commit
ea894f3953
|
|
@ -33,7 +33,9 @@ sub plugin_javascript {
|
|||
my ( $dbh, $record, $tagslib, $field_number ) = @_;
|
||||
my $res = "
|
||||
<script>
|
||||
function Clic$field_number(i) {
|
||||
function Clic$field_number(event) {
|
||||
event.preventDefault();
|
||||
const i = event.data.id;
|
||||
var defaultvalue;
|
||||
try {
|
||||
defaultvalue = document.getElementById(i).value;
|
||||
|
|
|
|||
Loading…
Reference in New Issue