Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Navigation: The first urlHistory entry cannot be a stale dialog hash …
Browse files Browse the repository at this point in the history
…state
  • Loading branch information
Gabriel Schulhof committed Dec 13, 2012
1 parent b618f6a commit fe3ea40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.navigation.js
Expand Up @@ -1132,7 +1132,7 @@ define( [
// However, if a dialog is already displayed at this point, and we're
// about to display another dialog, then we must add another hash and
// history entry on top so that one may navigate back to the original dialog
if ( active.url && active.url.indexOf( dialogHashKey ) > -1 && !$.mobile.activePage.is( ".ui-dialog" ) ) {
if ( urlHistory.activeIndex > 0 && active.url && active.url.indexOf( dialogHashKey ) > -1 && !$.mobile.activePage.is( ".ui-dialog" ) ) {
settings.changeHash = false;
alreadyThere = true;
}
Expand Down

0 comments on commit fe3ea40

Please sign in to comment.