Bug 32822: Fix cataloguing/value_builder/unimarc_field_010.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
9a672aed3d
commit
ba84c41a88
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ sub plugin_javascript {
|
|||
my ($dbh,$record,$tagslib,$field_number) = @_;
|
||||
my $res="
|
||||
<script>
|
||||
function Blur$field_number() {
|
||||
var isbn = document.getElementById('$field_number');
|
||||
function Blur$field_number(ev) {
|
||||
var isbn = document.getElementById(ev.data.id);
|
||||
var url = '../cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_010.pl&isbn=' + isbn.value;
|
||||
var req = \$.get(url);
|
||||
req.done(function(resp){
|
||||
|
|
Loading…
Reference in a new issue