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

Print Widget on nested tables #1160

Closed
clod986 opened this issue Feb 22, 2016 · 4 comments
Closed

Print Widget on nested tables #1160

clod986 opened this issue Feb 22, 2016 · 4 comments

Comments

@clod986
Copy link

clod986 commented Feb 22, 2016

Hi @Mottie,
I have an issue while printing nested tables: the widget will print both.

I have a table nested inside a td, both tables with their own unique print button and unique id. When I print the inner table, both print windows will open (the outer table opens last).

Thank you!

@Mottie
Copy link
Owner

Mottie commented Feb 22, 2016

Hi @clod986!

I created this demo and both tables are printed separately. So, I don't think it's a problem with the print widget.

If you need help with the code, please modify the demo with your code and I'll see what I can do.

@clod986
Copy link
Author

clod986 commented Feb 24, 2016

Hi @Mottie ,
after feeling stupid for a couple of days I realized is a Firefox only issue.

You can test it directly on the link you gave me.

@Mottie
Copy link
Owner

Mottie commented Feb 24, 2016

Oh! Sorry, I didn't even think about trying the demo in Firefox. Now I'm feeling dumb too ;)

I'll have an patch in the master branch here shortly.

@Mottie
Copy link
Owner

Mottie commented Feb 24, 2016

Alternatively, if you ever run into an issue like this, in this or another plugin, you can use triggerHandler, instead of trigger, which executes the event on the current element without having the event propagate.

$('#table2').triggerHandler('printTable');

@Mottie Mottie removed the Next Update label Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants