Slides not displaying after form post. #8

Open
nickolasgregory opened this Issue Apr 8, 2011 · 0 comments

Comments

Projects
None yet
1 participant

Hi.

I am using SlideShow to 'page' through a form.

If the POSTed data does not validate, and I get redirected back to the form, the browser seems to "remember" the style="display: none;" for each slide but the first. So they appear blank. (FF3.5 FF4.0 IE7/8 Chrome)

I "fixed" this by adding a check in setupSlides() as below;

if (slide.get('style') != 'display: none;') {
    slide.store('slideshow-index', index).store('slideshow:oldStyles', slide.get('style'));
}

But I'm sure there's a better way, or some magical fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment