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

Commit

Permalink
Fixes #3020 — Theme-dependent backgrounds should be applied only to ‘…
Browse files Browse the repository at this point in the history
…data-role=content’ within a dialog.
  • Loading branch information
Wilto committed Nov 11, 2011
1 parent 2212d74 commit 5262c2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/jquery.mobile.page.sections.js
Expand Up @@ -15,6 +15,7 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi

var $page = $( this ),
o = $page.data( "page" ).options,
pageRole = $page.jqmData( "role" ),
pageTheme = o.theme;

$( ":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')", this ).each(function() {
Expand Down Expand Up @@ -73,7 +74,7 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi
});

} else if ( role === "content" ) {
if ( contentTheme ) {
if ( contentTheme && pageRole === "dialog" ) {
$this.addClass( "ui-body-" + ( contentTheme ) );
}

Expand Down

0 comments on commit 5262c2b

Please sign in to comment.