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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +10 lines)
Lines 1133-1138 Link Here
1133
                    }
1133
                    }
1134
                });
1134
                });
1135
            [% END %]
1135
            [% END %]
1136
1137
            // Handle checkout for fast cataloging
1138
            // Check the referrer to prevent csrf, fill and submit form
1139
            if(document.referrer.split('?')[0] === window.location.origin +'/cgi-bin/koha/cataloguing/additem.pl') {
1140
                let urlParams = new URLSearchParams(window.location.search);
1141
                let barcode = urlParams.get('barcode');
1142
                $('#barcode').val(barcode);
1143
                $('#mainform').submit();
1144
            }
1145
1136
        });
1146
        });
1137
    </script>
1147
    </script>
1138
    [% INCLUDE 'str/members-menu.inc' %]
1148
    [% INCLUDE 'str/members-menu.inc' %]
1139
- 

Return to bug 37407