Permalink
Browse files

Dialog: Render un-closeable during pagebeforehide. Fixes #5956.

(cherry picked from commit ae059a1)
  • Loading branch information...
1 parent 142f15f commit d0eb1b988d8e5218966d193160686068b4a319e9 @gabrielschulhof gabrielschulhof committed May 2, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 js/widgets/dialog.js
@@ -28,6 +28,10 @@ $.widget( "mobile.dialog", $.mobile.widget, {
}
},
+ _handlePageBeforeHide: function() {
+ this._isCloseable = false;
+ },
+
_create: function() {
var self = this,
$el = this.element,
@@ -62,7 +66,8 @@ $.widget( "mobile.dialog", $.mobile.widget, {
});
this._on( $el, {
- pagebeforeshow: "_handlePageBeforeShow"
+ pagebeforeshow: "_handlePageBeforeShow",
+ pagebeforehide: "_handlePageBeforeHide"
});
$.extend( this, {

0 comments on commit d0eb1b9

Please sign in to comment.