Bug 32866: Fix cataloguing/value_builder/unimarc_field_146h.pl

Remove unnecessary call to event.preventDefault()

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: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Julian Maurice 2023-02-03 11:58:54 +01:00 committed by Tomas Cohen Arazi
parent bffb4fb0f4
commit f7beb484eb
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -29,7 +29,6 @@ my $builder = sub {
return qq|
<script>
function Click$id(event) {
event.preventDefault();
const value = document.getElementById(event.data.id).value;
const url = new URL('/cgi-bin/koha/cataloguing/plugin_launcher.pl', location);
url.searchParams.set('plugin_name', 'unimarc_field_146h.pl');