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

When loading content which includes tabs in a modal from Ajax, tabs are not responsive #847

Closed
pilap82 opened this issue Dec 24, 2011 · 3 comments

Comments

@pilap82
Copy link

pilap82 commented Dec 24, 2011

when clicking a link, I open a modal and load the content of a remote page in the modal.

This remote page contains some tabs. When clicking on tabs, the tabs themselves change, but not the content.
using the same code, but not loaded remotely (and not in a modal either), it works.
Using the same code, loaded before the document is ready (jQuery.isReady == false) in a modal, then the content doesn't change when i switch tabs.

In a nutshell, it appears that if you create tabs in a modal after the document is ready, you cannot switch to the content of another tab.

any idea?

@fat
Copy link
Member

fat commented Dec 24, 2011

that's definitely not the case - are you using data attributes or javascript?

@fat
Copy link
Member

fat commented Dec 25, 2011

this isn't reproducible, feel free to reopen with a non working jsfiddle - thanks!

@fat fat closed this as completed Dec 25, 2011
@pilap82
Copy link
Author

pilap82 commented Dec 26, 2011

My bad. it turns out I had a second modal on the same page. All my calls targeted classes so I hit both modals. Targeting IDs instead fixed the issue. thanks.

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

2 participants