Permalink
Browse files

Popup: Generate history entry when opening from an initial URL contai…

…ning a hash key
  • Loading branch information...
gabrielschulhof committed Dec 15, 2012
1 parent 81a57c8 commit fbd7288388850abdad37e24830470271f7868e27
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/widgets/popup.js
View
@@ -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 );

0 comments on commit fbd7288

Please sign in to comment.