From be5136198e14e1b9f418ef7cdddf2a208d10bfe2 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Fri, 23 Sep 2011 09:28:43 -0400 Subject: [PATCH] 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). --- js/jquery.mobile.navigation.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 7e6811b8..25deee49 100755 --- a/js/jquery.mobile.navigation.js +++ b/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.