View | Details | Raw Unified | Return to bug 32814
Collapse All | Expand All

(-)a/cataloguing/value_builder/callnumber-KU.pl (-3 / +3 lines)
Lines 46-53 my $builder = sub { Link Here
46
    my ( $params ) = @_;
46
    my ( $params ) = @_;
47
    my $res="
47
    my $res="
48
    <script>
48
    <script>
49
        function Click$params->{id}() {
49
        function Click$params->{id}(ev) {
50
                var code = document.getElementById('$params->{id}');
50
                ev.preventDefault();
51
                var code = document.getElementById(ev.data.id);
51
                var url = '../cataloguing/plugin_launcher.pl?plugin_name=callnumber-KU.pl&code=' + code.value;
52
                var url = '../cataloguing/plugin_launcher.pl?plugin_name=callnumber-KU.pl&code=' + code.value;
52
                var req = \$.get(url);
53
                var req = \$.get(url);
53
                req.done(function(resp){
54
                req.done(function(resp){
54
- 

Return to bug 32814