webstaff: tweaks to egPrint
authorGalen Charlton <gmc@esilibrary.com>
Tue, 15 Nov 2016 20:40:39 +0000 (15:40 -0500)
committerKathy Lussier <klussier@masslnc.org>
Tue, 22 Nov 2016 19:10:05 +0000 (14:10 -0500)
commitad985ee1228e12be224aff79858e74c3073d71f8
tree556d9248ce1e7aa5e6c8eca92451a6b26a8b9d79
parentb959115fab86a03f38e5a6bd417b57db1d14796c
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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/services/print.js