From 9a492d06fd0608002793ed8b5ab9f2cf70a59a15 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Wed, 26 Jan 2011 22:04:36 -0500 Subject: [PATCH] allow form data to be passed to $.mobile.changePage as a query string or object. --- js/jquery.mobile.navigation.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 957cf713..ec4d72a5 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -299,6 +299,10 @@ isFormRequest = true; //make get requests bookmarkable if( data && type == 'get' ){ + if($.type( data ) == "object" ){ + data = $.param(data); + } + url += "?" + data; data = undefined; }