Bug 32815: Fix cataloguing/value_builder/callnumber.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
2dafd6f749
commit
aa726e5329
|
|
@ -43,8 +43,8 @@ my $builder = sub {
|
|||
my ( $params ) = @_;
|
||||
my $res="
|
||||
<script>
|
||||
function Blur$params->{id}() {
|
||||
var code = document.getElementById('$params->{id}');
|
||||
function Blur$params->{id}(ev) {
|
||||
var code = document.getElementById(ev.data.id);
|
||||
var url = '../cataloguing/plugin_launcher.pl?plugin_name=callnumber.pl&code=' + code.value;
|
||||
var req = \$.get(url);
|
||||
req.done(function(resp){
|
||||
|
|
|
|||
Loading…
Reference in New Issue