Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2868 from MauriceG/patch-1

Fix for #2865: Page title overridden on (first load) reload
  • Loading branch information...
commit 23b1510cf86fb4bb0cfd0d1f22d4c5d0fc05d1ad 2 parents b0f430d + 3d0f10d
@gseguin gseguin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/jquery.mobile.navigation.js
View
2  js/jquery.mobile.navigation.js
@@ -1112,7 +1112,7 @@
}
//if title element wasn't found, try the page div data attr too
- var newPageTitle = toPage.jqmData( "title" ) || toPage.children(":jqmData(role='header')").find(".ui-title" ).getEncodedText();
+ var newPageTitle = toPage.jqmData( "title" ) || pageTitle || toPage.children(":jqmData(role='header')").find(".ui-title" ).getEncodedText();
if( !!newPageTitle && pageTitle == document.title ) {
pageTitle = newPageTitle;
}
Please sign in to comment.
Something went wrong with that request. Please try again.