Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem showing images on Chrome navigator #66

Open
aserral opened this issue Jul 3, 2015 · 0 comments
Open

Problem showing images on Chrome navigator #66

aserral opened this issue Jul 3, 2015 · 0 comments

Comments

@aserral
Copy link

aserral commented Jul 3, 2015

The plugin does not work correctly on Chrome.
The images does not display.
I suggest you the next fix:

jquery.printElement.js - line 104 - line replace

if (element && element["printPage"])
if (element && element["printPage"] && element["is_ready"] === true)

jquery.printElement.js - line 174 - line replace

html.push('<body style="' + opts["printBodyOptions"]["styleToAdd"] + '" class="' + opts["printBodyOptions"]["classNameToAdd"] + '">');
html.push('<body style="' + opts["printBodyOptions"]["styleToAdd"] + '" class="' + opts["printBodyOptions"]["classNameToAdd"] + '" onload="doReady();">');

jquery.printElement.js - line 177 - add before

html.push('<script type="text/javascript">var is_ready = false; function doReady() {is_ready = true;}</script>');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant