]> git.evergreen-ils.org Git - working/Evergreen.git/commit
webstaff: tweaks to egPrint
authorGalen Charlton <gmc@esilibrary.com>
Tue, 15 Nov 2016 20:40:39 +0000 (15:40 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 15 Nov 2016 20:40:39 +0000 (15:40 -0500)
commit06c7f620505c2027912eaac27091a2e4a7b7a2e6
treea0e858b58e5248684bc0c34d9c2884bafc51f7bf
parent09286f562a092cf48fd575706d66deddc88be8db
webstaff: tweaks to egPrint

This patch attempts to unbreak receipt and CSV printing
by fetching and injecting the print CSS into a style element,
as a link element in the print div doesn't seem to get
processed.  It also automatically clears the content
of the print div so that after you print a receipt, the
browser print command will print the page, not the receipt.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/web/js/ui/default/staff/services/print.js