mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-27 17:34:45 +00:00
move the pageTitle setter to different function
This commit is contained in:
parent
91109ebbd0
commit
854885e93d
1 changed files with 6 additions and 7 deletions
|
|
@ -408,6 +408,12 @@
|
|||
//update hash and history
|
||||
path.set( url );
|
||||
}
|
||||
|
||||
//if title element wasn't found, try the page div data attr too
|
||||
var newPageTitle = to.attr( ":jqmData(title)" ) || to.find(".ui-header .ui-title" ).text();
|
||||
if( newPageTitle && pageTitle == document.title ){
|
||||
pageTitle = newPageTitle;
|
||||
}
|
||||
|
||||
//if title element wasn't found, try the page div data attr too
|
||||
var newPageTitle = to.attr( ":jqmData(title)" );
|
||||
|
|
@ -509,13 +515,6 @@
|
|||
nextPageRole = null;
|
||||
}
|
||||
}
|
||||
|
||||
//if title element wasn't found, try the page div data attr too
|
||||
var newPageTitle = to.attr( ":jqmData(title)" ) || to.find(".ui-header .ui-title" ).text();
|
||||
if( !!newPageTitle ){
|
||||
|
||||
pageTitle = newPageTitle;
|
||||
}
|
||||
|
||||
//run page plugin
|
||||
to.page();
|
||||
|
|
|
|||
Loading…
Reference in a new issue