Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[dialog] When hashListeningEnabled is not set, use urlHistory to go b…

…ack from the dialog - Fixes: #4320
  • Loading branch information...
commit c9e10b62b8b91103e4d0be228fec1a3c7bde253f 1 parent c77afd6
@gabrielschulhof gabrielschulhof authored
Showing with 7 additions and 2 deletions.
  1. +1 −1  docs/pages/dialog.html
  2. +6 −1 js/jquery.mobile.dialog.js
View
2  docs/pages/dialog.html
@@ -31,4 +31,4 @@
</body>
-</html>
+</html>
View
7 js/jquery.mobile.dialog.js
@@ -84,7 +84,12 @@ $.widget( "mobile.dialog", $.mobile.widget, {
close: function() {
if ( !this._isClosed ) {
this._isClosed = true;
- window.history.back();
+ if ( $.mobile.hashListeningEnabled ) {
+ window.history.back();
+ }
+ else {
+ $.mobile.changePage( $.mobile.urlHistory.getPrev().url );
+ }
}
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.