]> git.koha-community.org Git - koha.git/commit
Bug 31041: (follow-up) Clean up and generalise
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 7 Nov 2023 11:35:22 +0000 (11:35 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 8 Nov 2023 12:59:00 +0000 (09:59 -0300)
commitef880e349f959686a830bda67ec5a295e3d76eb4
treecc56eeeeb7f5e73ea894f58f8260174b2c2d8deb
parent85fb62f3d6e0784bf75309325b78712f18877055
Bug 31041: (follow-up) Clean up and generalise

This patch cleans out the print media css rules that were originally
added for modalprinting.  The window.open method is simpler to maintain
and will more reliably print modal content as expected.

We factor out the printer code into it's own JS asset that we can apply
to other printable modals and then use it in the two existing places
where such modals have been defined already (cashup summary and bundle
confirmation).

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt
koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js
koha-tmpl/intranet-tmpl/prog/js/modal_printer.js [new file with mode: 0644]