Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Prefetched dialog not rendered #2335

Closed
sustainablepace opened this issue Aug 25, 2011 · 6 comments
Closed

Prefetched dialog not rendered #2335

sustainablepace opened this issue Aug 25, 2011 · 6 comments
Assignees

Comments

@sustainablepace
Copy link

Beta 2: When I link to a dialog via data-rel="dialog" and also apply the data-prefetch attribute, the dialog is not rendered with rounded corners and close button. If the data-prefetch attribute is removed, everything works as expected.

@toddparker
Copy link
Contributor

I was able to reproduce a while ago, but can you post a test page on jsbin or jsfiddle? I don't know if this is a technical limitation or just something we missed int he recent refactors.

@ghost ghost assigned gseguin Sep 5, 2011
@john-hughes
Copy link

I am seeing this same issue.

It also happens when you use javascript to preload the page: $.mobile.loadPage("page.htm");

@toddparker
Copy link
Contributor

Hi guys - if you can post a test page in jsbin or jsfiddle using the latest build, we'll take a look.

@ghost
Copy link

ghost commented Sep 10, 2011

I'm having the same issue too. Here's an example http://jsfiddle.net/Y7Lcz/3/

As soon as you remove the data-prefetch from the link, everything looks perfect.

Thanks!

@ghost
Copy link

ghost commented Sep 10, 2011

Hello again - I just figured out how to make it work correctly. You have to make sure to set data-role='dialog' for the page you want to act like a dialog. It seems like you only need to do this when you prefetch a page that has data-rel='dialog'.

@ghost
Copy link

ghost commented Sep 10, 2011

Actually, I just noticed the styling is really off when you do that... hmmm :/

@ghost ghost assigned jblas Sep 22, 2011
@ghost ghost assigned johnbender Oct 11, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants