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

Second level and above stackable modals issue #263

Open
gunjanvarshney opened this issue Feb 2, 2015 · 0 comments
Open

Second level and above stackable modals issue #263

gunjanvarshney opened this issue Feb 2, 2015 · 0 comments

Comments

@gunjanvarshney
Copy link

Hello,

I am trying to use this jQuery plugin to create stackable modals. what is important to me is that original parent (the plugin code appends the new opened modals to body). The requirement is that I have to select modal from a click of the button within modal content. that button is in a iframe source within the modal (opened). to select iframe (on click of button) I use window.frameElement and then use jquery 'closest' function to get the modal.

I figured that the parent of the modal could be queried through jQuery data using 'modal' as the key. what I found was that all the modals are actually appended on top window body the modal data get lost as the modal data was saved (when initially modal was shown) to first / parent modals jQuery instance context. while now the window.parent == window.top on second level modal.

is there any way out.

Thanks,
Gunjan

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