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

(-)a/cataloguing/value_builder/stocknumberAV.pl (-2 / +2 lines)
Lines 50-57 my $builder = sub { Link Here
50
        function Click$params->{id}(ev) {
50
        function Click$params->{id}(ev) {
51
                ev.preventDefault();
51
                ev.preventDefault();
52
                var code = document.getElementById(ev.data.id);
52
                var code = document.getElementById(ev.data.id);
53
                const token = document.getElementsByName('csrf_token')[0].value;
53
                \$.ajax({
54
                \$.ajax({
54
                    url: '/cgi-bin/koha/cataloguing/plugin_launcher.pl',
55
                    url: '/cgi-bin/koha/cataloguing/plugin_launcher.pl?csrf_token=' + token,
55
                    type: 'POST',
56
                    type: 'POST',
56
                    data: {
57
                    data: {
57
                        'plugin_name': 'stocknumberAV.pl',
58
                        'plugin_name': 'stocknumberAV.pl',
58
- 

Return to bug 38030