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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 10 Nov 2023 08:05:16 +0000 (22:05 -1000)
commit39a8ff6bb5c97b07cf8e73424e7432cf675b3777
tree082b92b8b641b0e15495a8b8185af399614bc5b5
parentd74cec96120cec3ea6bec79006c371e4794cb3da
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>
(cherry picked from commit ef880e349f959686a830bda67ec5a295e3d76eb4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
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]