Permalink
Browse files

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

  • Loading branch information...
gabrielschulhof committed May 2, 2013
1 parent b070b64 commit ae059a1f9d930200a094c846f319b772c000bb0d
Showing with 6 additions and 1 deletion.
  1. +6 −1 js/widgets/dialog.js
View
@@ -27,6 +27,10 @@ $.widget( "mobile.dialog", $.mobile.widget, $.extend( {
}
},
_handlePageBeforeHide: function() {
this._isCloseable = false;
},
_create: function() {
var $el = this.element,
cornerClass = !!this.options.corners ? " ui-corner-all" : "",
@@ -60,7 +64,8 @@ $.widget( "mobile.dialog", $.mobile.widget, $.extend( {
});
this._on( $el, {
pagebeforeshow: "_handlePageBeforeShow"
pagebeforeshow: "_handlePageBeforeShow",
pagebeforehide: "_handlePageBeforeHide"
});
this._setCloseBtn( this.options.closeBtn );

0 comments on commit ae059a1

Please sign in to comment.