Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Panel: Only set page theme to panel theme for reveal and push mode.

  • Loading branch information...
commit a5c33371dda3957d98e59231e80bb57473dc0cfa 1 parent 5760379
@jaspermdegroot jaspermdegroot authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/panel.js
View
4 js/widgets/panel.js
@@ -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 );
@@ -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 );
Please sign in to comment.
Something went wrong with that request. Please try again.