diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index c24d996e38..6179156886 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1670,13 +1670,15 @@ }); $(".print").on("click", function (e) { - // Open the hold transfer slip synchronously, while the user - // gesture is still active, so it is not blocked as an - // unsolicited popup after the form submission and page reload. - if (this.form && this.form.reserve_id && this.form.reserve_id.value) { - Dopop("hold-transfer-slip.pl?reserve_id=" + encodeURIComponent(this.form.reserve_id.value)); - } if (this.form) { + // Open a blank named popup synchronously, while the user + // gesture is still active, so it is not blocked. The + // response page will load the slip into that popup after + // the hold has been updated. + if (this.form.reserve_id && this.form.reserve_id.value) { + Dopop(""); + } + this.form.print_slip.value = 1; let barcode = document.getElementById("confirm-hold-barcode"); if (barcode) barcode.remove(); this.form.submit();