mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
if there's an overlay theme, we're going to remove it from the page container. First though, check that the incoming page isn't a dialog with the same overlay theme. If so, don't remove the class, as it'll remove it for the next one too
This commit is contained in:
parent
473802e26e
commit
f7aa71d423
1 changed files with 7 additions and 2 deletions
|
|
@ -60,10 +60,15 @@ $.widget( "mobile.dialog", $.mobile.widget, {
|
|||
.attr( "data-" + $.mobile.ns + "direction", "reverse" );
|
||||
}
|
||||
})
|
||||
.bind( "pagehide", function() {
|
||||
.bind( "pagehide", function( e, ui ) {
|
||||
$( this ).find( "." + $.mobile.activeBtnClass ).removeClass( $.mobile.activeBtnClass );
|
||||
|
||||
// if there's an overlay theme, we're going to remove it from the page container.
|
||||
// First though, check that the incoming page isn't a dialog with the same theme. If so, don't remove.
|
||||
if( self.options.overlayTheme ){
|
||||
$.mobile.pageContainer.removeClass( "ui-body-" + self.options.overlayTheme );
|
||||
if( !ui.nextPage || !ui.nextPage.is( ".ui-dialog-page.ui-overlay-" + self.options.overlayTheme ) ){
|
||||
$.mobile.pageContainer.removeClass( "ui-overlay-" + self.options.overlayTheme );
|
||||
}
|
||||
}
|
||||
})
|
||||
.bind( "pagebeforeshow", function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue