Permalink
Browse files

no history entry is added when the hash handling is turned off

  • Loading branch information...
1 parent dfef8e6 commit df6af7eefe7318921752af5c5a201f8a0462aa93 @johnbender johnbender committed Nov 27, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/widgets/dialog.js
@@ -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 ) {
@@ -15,6 +15,7 @@ $.widget( "mobile.dialog", $.mobile.widget, {
overlayTheme: "a",
initSelector: ":jqmData(role='dialog')"
},
+
_create: function() {
var self = this,
$el = this.element,
@@ -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 );
}

0 comments on commit df6af7e

Please sign in to comment.