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

Commit

Permalink
Browse files Browse the repository at this point in the history
Dialog: Render un-closeable during pagebeforehide. Fixes #5956.
(cherry picked from commit ae059a1)
  • Loading branch information
Gabriel Schulhof committed May 5, 2013
1 parent 142f15f commit d0eb1b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/widgets/dialog.js
Expand Up @@ -28,6 +28,10 @@ $.widget( "mobile.dialog", $.mobile.widget, {
}
},

_handlePageBeforeHide: function() {
this._isCloseable = false;
},

_create: function() {
var self = this,
$el = this.element,
Expand Down Expand Up @@ -62,7 +66,8 @@ $.widget( "mobile.dialog", $.mobile.widget, {
});

this._on( $el, {
pagebeforeshow: "_handlePageBeforeShow"
pagebeforeshow: "_handlePageBeforeShow",
pagebeforehide: "_handlePageBeforeHide"
});

$.extend( this, {
Expand Down

0 comments on commit d0eb1b9

Please sign in to comment.