zurb/reveal — Issue #40: Weird problems when combined with jQuery Cycle (malsup)
Author: wjdennen
Created: 2012-01-02 20:29:03+00:00
State: open

Hi,

I'm trying to fire a Reveal modal dialog from within a jQuery Cycle slideshow. I've set up a simple demo that has 3 slides. There is a link on each slide which opens a different modal dialog.

See:

http://jsfiddle.net/wjdennen/b2NG3/

To see the problem:

1) load the example and run it
2) Click on the link in the first slide. (Modal should fire, and slideshow should pause)
3) Close the modal. (Slideshow should resume)
4) Click on the link in the second slide (Modal fires -- but it's missing the background overlay 'reveal-modal-bg')
5) Close the modal. Slideshow resumes.
6) Wait for slide 1 to load again and the reveal-modal-bg is visible.

it looks like reveal-modal-bg is not hidden properly when the modal is closed?