mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-25 02:10:28 +00:00
moved the resetBaseURL call into the hashchange, instead of in ajaxClick
This commit is contained in:
parent
726691afc3
commit
762341fc52
1 changed files with 5 additions and 4 deletions
|
|
@ -78,9 +78,7 @@
|
|||
var href = jQuery( this ).attr( "href" );
|
||||
pageTransition = jQuery( this ).attr( "data-transition" ) || "slide";
|
||||
nextPageRole = jQuery( this ).attr( "data-rel" );
|
||||
|
||||
//reset base to pathname for new request
|
||||
resetBaseURL();
|
||||
|
||||
//find new base for url building
|
||||
var newBaseURL = getBaseURL();
|
||||
|
||||
|
|
@ -160,6 +158,9 @@
|
|||
fileUrl = url;
|
||||
pageTransition = undefined;
|
||||
|
||||
//reset base to pathname for new request
|
||||
resetBaseURL();
|
||||
|
||||
// if the new href is the same as the previous one
|
||||
if ( back ) {
|
||||
transition = urlStack.pop().transition;
|
||||
|
|
@ -251,7 +252,7 @@
|
|||
'<meta name="apple-mobile-web-app-status-bar-style" content="default" />'+
|
||||
'<base href="" id="ui-base" />');
|
||||
|
||||
//
|
||||
//set base href to pathname
|
||||
resetBaseURL();
|
||||
|
||||
//potential (probably incomplete) fallback to workaround lack of animation callbacks.
|
||||
|
|
|
|||
Loading…
Reference in a new issue