Created
July 26, 2012 18:37
-
-
Save gabrielschulhof/3183692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/widgets/dialog.js b/js/widgets/dialog.js | |
index ec8f825..d2a0e77 100644 | |
--- a/js/widgets/dialog.js | |
+++ b/js/widgets/dialog.js | |
@@ -67,8 +67,10 @@ $.widget( "mobile.dialog", $.mobile.widget, { | |
.attr( "data-" + $.mobile.ns + "direction", "reverse" ); | |
} | |
}) | |
- .bind( "pagehide", function( e, ui ) { | |
+ .bind( "pagebeforeshow", function( e ) { | |
self._isClosed = false; | |
+ }, | |
+ .bind( "pagehide", function( e, ui ) { | |
$( this ).find( "." + $.mobile.activeBtnClass ).not( ".ui-slider-bg" ).removeClass( $.mobile.activeBtnClass ); | |
}) | |
// Override the theme set by the page plugin on pageshow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment