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

Commit df6af7e

Browse files
committed
no history entry is added when the hash handling is turned off
1 parent dfef8e6 commit df6af7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/widgets/dialog.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//>>css.structure: ../css/structure/jquery.mobile.dialog.css
66
//>>css.theme: ../css/themes/default/jquery.mobile.theme.css
77

8-
define( [ "jquery", "../jquery.mobile.widget" ], function( $ ) {
8+
define( [ "jquery", "../jquery.mobile.widget", "../jquery.mobile.navigation" ], function( $ ) {
99
//>>excludeEnd("jqmBuildExclude");
1010
(function( $, window, undefined ) {
1111

@@ -15,6 +15,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
1515
overlayTheme: "a",
1616
initSelector: ":jqmData(role='dialog')"
1717
},
18+
1819
_create: function() {
1920
var self = this,
2021
$el = this.element,
@@ -90,7 +91,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
9091
if ( $.mobile.hashListeningEnabled ) {
9192
$.mobile.back();
9293
} else {
93-
dst = $.mobile.urlHistory.getPrev().url;
94+
dst = $.mobile.urlHistory.getActive().url;
9495
if ( !$.mobile.path.isPath( dst ) ) {
9596
dst = $.mobile.path.makeUrlAbsolute( "#" + dst );
9697
}

0 commit comments

Comments
 (0)