zurb/reveal

Second modal window - possible?

fulopattila122 opened this issue · 4 comments

I have a request where I have to display small modal windows on an already opened modal window containing a form.
I added the click function on the modal form (as usual), and set the z-index of the second modal div to 9999. This way the second modal shows up well.

But when I close it, not only the second modal disappears, but also the background of the first modal.
The first modal remains visible, however it can't be closed. Only a page reload seems to help.

Is it possible to have a second reveal modal on an open reveal modal window?

I've got the same request/issue.

Actually, changing line 101 to $('.reveal-modal').trigger('reveal:close'); fixes this problem as it targets all divs with that class instead of just the parent of the close button being clicked.

Re: "Actually, changing line 101 to $('.reveal-modal').trigger('reveal:close'); fixes this problem".
Would you mind including from what line (101) to $('.reveal-modal').trigger('reveal:close');

It doesn't actually fix it. When you click out of the modal (without using the close button), the issue is still there.