Permalink
Browse files

when a form is submitting via post to a url that already has a page r…

…epresented 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).
  • Loading branch information...
1 parent 1badd4a commit be5136198e14e1b9f418ef7cdddf2a208d10bfe2 scottjehl committed Sep 23, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/jquery.mobile.navigation.js
@@ -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.

0 comments on commit be51361

Please sign in to comment.