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 1135-1140 Link Here
1135
                    }
1135
                    }
1136
                });
1136
                });
1137
            [% END %]
1137
            [% END %]
1138
1139
            // Handle checkout for fast cataloging
1140
            // Check the referrer to prevent csrf, fill and submit form
1141
            if(document.referrer.split('?')[0] === window.location.origin +'/cgi-bin/koha/cataloguing/additem.pl') {
1142
                let urlParams = new URLSearchParams(window.location.search);
1143
                let barcode = urlParams.get('barcode');
1144
                $('#barcode').val(barcode);
1145
                $('#mainform').submit();
1146
            }
1147
1138
        });
1148
        });
1139
    </script>
1149
    </script>
1140
    [% INCLUDE 'str/members-menu.inc' %]
1150
    [% INCLUDE 'str/members-menu.inc' %]
1141
- 

Return to bug 37407