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

Commit

Permalink
no history entry is added when the hash handling is turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbender committed Nov 27, 2012
1 parent dfef8e6 commit df6af7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/widgets/dialog.js
Expand Up @@ -5,7 +5,7 @@
//>>css.structure: ../css/structure/jquery.mobile.dialog.css
//>>css.theme: ../css/themes/default/jquery.mobile.theme.css

define( [ "jquery", "../jquery.mobile.widget" ], function( $ ) {
define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.navigation" ], function( $ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {

Expand All @@ -15,6 +15,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
overlayTheme: "a",
initSelector: ":jqmData(role='dialog')"
},

_create: function() {
var self = this,
$el = this.element,
Expand Down Expand Up @@ -90,7 +91,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
if ( $.mobile.hashListeningEnabled ) {
$.mobile.back();
} else {
dst = $.mobile.urlHistory.getPrev().url;
dst = $.mobile.urlHistory.getActive().url;
if ( !$.mobile.path.isPath( dst ) ) {
dst = $.mobile.path.makeUrlAbsolute( "#" + dst );
}
Expand Down

0 comments on commit df6af7e

Please sign in to comment.