]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1646166 Hatch printing multi root-node templates user/berick/lp1646166-hatch-2.12-omnibus
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Feb 2017 17:17:55 +0000 (12:17 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 16 Feb 2017 17:20:22 +0000 (12:20 -0500)
commitd3ca9ccbde93cd21ec2c4dcd0e21feddf62fdca8
tree364886e2a347905b306f6a75e214eef4f735406d
parentd433e483a01b3250f5a3cbd1ea5a4b7b7656943b
LP#1646166 Hatch printing multi root-node templates

Print templates with no root element or root elements that contained
necessary attributes (id, style, etc.) failed to print correctly in
some casese with Hatch HTML printing because the root node was dropped
after compilation.  This commit changes how we extract the compiled HTML
from the page, using the more reliable method of pulling it directly
from the print element div instead of inspecting the compiled nodes.

Commit also wraps all content in <html/><body/> for good measure.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/services/print.js