mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Fixed inheritance of content theme
This commit is contained in:
parent
26c48c8c6c
commit
47e0e4bf99
1 changed files with 3 additions and 2 deletions
|
|
@ -24,6 +24,7 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi
|
|||
var $this = $( this ),
|
||||
role = $this.jqmData( "role" ),
|
||||
theme = $this.jqmData( "theme" ),
|
||||
contentTheme = theme || o.contentTheme || pageTheme,
|
||||
$headeranchors,
|
||||
leftbtn,
|
||||
rightbtn,
|
||||
|
|
@ -75,8 +76,8 @@ $( ":jqmData(role='page'), :jqmData(role='dialog')" ).live( "pagecreate", functi
|
|||
});
|
||||
|
||||
} else if ( role === "content" ) {
|
||||
if (theme || o.contentTheme) {
|
||||
$this.addClass( "ui-body-" + ( theme || o.contentTheme ) );
|
||||
if ( contentTheme ) {
|
||||
$this.addClass( "ui-body-" + ( contentTheme ) );
|
||||
}
|
||||
|
||||
// Add ARIA role
|
||||
|
|
|
|||
Loading…
Reference in a new issue