Author: scottbw
Date: Tue Mar 15 15:17:16 2011
New Revision: 1081812
URL: http://svn.apache.org/viewvc?rev=1081812&view=rev
Log:
Implemented transitions for back functions (this needs to be replicated over to
Ross's Github fork...)
Modified:
incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a3.min.js
Modified:
incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a3.min.js
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a3.min.js?rev=1081812&r1=1081811&r2=1081812&view=diff
==============================================================================
--- incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a3.min.js
(original)
+++ incubator/wookie/trunk/features/jqmobile/shared/jquery.mobile-1.0a3.min.js
Tue Mar 15 15:17:16 2011
@@ -52,9 +52,10 @@ Q();setTimeout(function(){F()},0)},error
q=e.clean(a(this).attr("action"));if(!e.isExternal(q)){if(e.isRelative(q))q=e.makeAbsolute(q);a.mobile.changePage({url:q,type:s,data:a(this).serialize()},d,d,true);l.preventDefault()}}});a("a").live("click",function(l){var
s=a(this),q=s.attr("href")||"#";q=e.clean(q);var
w=s.is("[rel='external']"),z=e.isEmbeddedPage(q);w=e.isExternal(q)||w&&!z;z=s.is("[target]");var
F=s.is("[data-ajax='false']");if(s.is("[data-rel='back']")){
var url = $.mobile.urlHistory.getPrev().url;
+var t = $.mobile.urlHistory.getPrev().transition;
if (url === null || url == "") url = $.mobile.firstPage.attr("data-url");
url = "#" + url;
-$.mobile.changePage(url, "slide", true, true, true);
+$.mobile.changePage(url, t, true, true, true);
//window.history.back();
return false
@@ -130,9 +131,10 @@ function(d){d=d.type=="click"?a(d.target
var url = $.mobile.urlHistory.getPrev().url;
+var t = $.mobile.urlHistory.getPrev().transition;
if (url === null || url == "") url = $.mobile.firstPage.attr("data-url");
url = "#" + url;
-$.mobile.changePage(url, "slide", true, true, true);
+$.mobile.changePage(url, t, true, true, true);
//window.history.back()