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

Commit

Permalink
Popup: Generate history entry when opening from an initial URL contai…
Browse files Browse the repository at this point in the history
…ning a hash key
  • Loading branch information
Gabriel Schulhof committed Dec 17, 2012
1 parent 81a57c8 commit fbd7288
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/widgets/popup.js
Expand Up @@ -776,12 +776,12 @@ define( [
}

// cache some values for min/readability
urlHistory = $.mobile.urlHistory;
hashkey = $.mobile.dialogHashKey;
activePage = $.mobile.activePage;
currentIsDialog = activePage.is( ".ui-dialog" );
this._myUrl = url = $.mobile.urlHistory.getActive().url;
hasHash = ( url.indexOf( hashkey ) > -1 ) && !currentIsDialog;
urlHistory = $.mobile.urlHistory;
this._myUrl = url = urlHistory.getActive().url;
hasHash = ( url.indexOf( hashkey ) > -1 ) && !currentIsDialog && ( urlHistory.activeIndex > 0 );

if ( hasHash ) {
self._open( options );
Expand Down

0 comments on commit fbd7288

Please sign in to comment.