Browse files

Brought back the page content div theme inheritance from b1. Thanks t…

…o abdulqadir for the suggestion. Fixes #2221
  • Loading branch information...
1 parent 4c3ecde commit 28eebc25de5f23615509ab1971177e7467be3f94 scottjehl committed Aug 5, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/jquery.mobile.page.sections.js
View
4 js/jquery.mobile.page.sections.js
@@ -79,7 +79,9 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi
} else if ( role === "content" ) {
- $this.addClass( "ui-body-" + ( theme || pageTheme || o.contentTheme ) );
+ if (theme || o.contentTheme) {
+ $this.addClass( "ui-body-" + ( theme || o.contentTheme ) );
+ }
// Add ARIA role
$this.attr( "role", "main" );

0 comments on commit 28eebc2

Please sign in to comment.