mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Fixes #3020 — Theme-dependent backgrounds should be applied only to ‘data-role=content’ within a dialog.
This commit is contained in:
parent
2212d7428c
commit
5262c2be56
1 changed files with 2 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
@ -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 ) );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue