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

Commit

Permalink
Panel: Only set page theme to panel theme for reveal and push mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspermdegroot committed Jan 20, 2013
1 parent 5760379 commit a5c3337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/panel.js
Expand Up @@ -290,7 +290,7 @@ $.widget( "mobile.panel", $.mobile.widget, {
} else {
setTimeout( complete, 0 );
}
if ( self.options.theme ) {
if ( self.options.theme && self.options.display !== "overlay" ) {
self._page.removeClass( self._pageTheme ).addClass( "ui-body-" + self.options.theme );
}
self.element.removeClass( o.classes.panelClosed );
Expand All @@ -314,7 +314,7 @@ $.widget( "mobile.panel", $.mobile.widget, {
var o = this.options,
self = this,
complete = function() {
if ( self.options.theme ) {
if ( self.options.theme && self.options.display !== "overlay" ) {
self._page.removeClass( "ui-body-" + self.options.theme ).addClass( self._pageTheme );
}
self.element.add( self._wrapper ).add( self._fixedToolbar ).off( self._transitionEndEvents, complete );
Expand Down

0 comments on commit a5c3337

Please sign in to comment.