mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-09 00:50:58 +00:00
when a form is submitting via post to a url that already has a page represented in the DOM, replace the current page with the response page of the same url (post params are not passed via q string, so the URLs are identical).
This commit is contained in:
parent
1badd4aa8e
commit
be5136198e
1 changed files with 5 additions and 0 deletions
|
|
@ -686,6 +686,11 @@
|
|||
absUrl = path.addSearchParams( absUrl, settings.data );
|
||||
settings.data = undefined;
|
||||
}
|
||||
|
||||
// If the caller is using a "post" request, reloadPage must be true
|
||||
if( settings.data && settings.type === "post" ){
|
||||
settings.reloadPage = true;
|
||||
}
|
||||
|
||||
// The absolute version of the URL minus any dialog/subpage params.
|
||||
// In otherwords the real URL of the page to be loaded.
|
||||
|
|
|
|||
Loading…
Reference in a new issue