https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43114 --- Comment #10 from Andrii Nugged <nugged@gmail.com> --- Created attachment 212816 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212816&action=edit Bug 43114: Close the slip window after the print dialog Install the afterprint listener before calling print, since the event can fire before print returns. Defer closing briefly so Firefox can finish handling the dialog. Leave the automatically printed spine label open so the user can edit and reprint it. The IntranetSlipPrinterJS override continues to control printing when set. Thanks to Christopher and the reporters who tested the workaround in the Bugzilla discussion. Test plan: Before applying the patch: 1. Leave IntranetSlipPrinterJS empty. 2. In Firefox, open a patron's checkout page in the staff interface. 3. Choose Print > Print quick slip. 4. Complete the print dialog. The slip window stays open. 5. Repeat the print and dismiss the dialog with Cancel. Apply the patch. After applying the patch: 1. Repeat the quick slip flow in Firefox, once with Print and once with Cancel. The slip window closes after each dialog. 2. Repeat the quick slip flow in Chromium. 3. Enable SpineLabelAutoPrint. 4. Open Cataloging > Quick spine label creator. 5. Enter an item barcode and click View spine label. 6. Complete the automatic print. The label stays visible. 7. Click Edit this label and change the label text. 8. Click Print this label. The updated label can be printed. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.