]> 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)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 14 Nov 2023 14:48:12 +0000 (13:48 -0100)
commit6f798ff886fa4bb764515ff0ade3ca9bc144a9bb
treea3444c92ad8d6a7311937437d0b20b3afa7633d7
parent1feb977d4320ed889b4a222394112c59c7ad78f5
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>
(cherry picked from commit 39a8ff6bb5c97b07cf8e73424e7432cf675b3777)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.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]