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

External page being reloaded when dialog closes #5239

Closed
@maurice2k

Description

@maurice2k

Changing to a new page from a page that has been previously loaded using AJAX (external page) triggers a removal of this external page. This seems completely logical and you can also disable this behaviour using data-dom-cache="true".

However, when it comes to dialogs the removal of the previously loaded external page is probably not what you want (regardless of what data-dom-cache is set to) because it's most likely that closing the dialog should show the underlying page again.
Currently this triggers a reload which also means that all modifications to that page (checkboxes being checked, filled forms etc.) are gone.

Expected result: If the new page is a dialog the previous page should not be removed from DOM.

Online test page:
http://jsbin.com/alijiy/5

There's also a post on stackoverflow addressing this problem:
http://stackoverflow.com/questions/9364424/why-is-jquerymobile-reloading-the-page-on-dialog-close

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions