mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Fixes #3028 — Listviews themselves are now inheriting the theme set at the page level. Individual list items remain themeable.
This commit is contained in:
parent
b90eab4935
commit
f62c5c01b3
1 changed files with 5 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ var listCountPerPage = {};
|
|||
|
||||
$.widget( "mobile.listview", $.mobile.widget, {
|
||||
options: {
|
||||
theme: "c",
|
||||
theme: null,
|
||||
countTheme: "c",
|
||||
headerTheme: "b",
|
||||
dividerTheme: "b",
|
||||
|
|
@ -160,6 +160,10 @@ $.widget( "mobile.listview", $.mobile.widget, {
|
|||
if ( counter ) {
|
||||
$list.find( ".ui-li-dec" ).remove();
|
||||
}
|
||||
|
||||
if ( !o.theme ) {
|
||||
o.theme = $.mobile.getInheritedTheme( this.element, "c" );
|
||||
}
|
||||
|
||||
for ( var pos = 0, numli = li.length; pos < numli; pos++ ) {
|
||||
item = li.eq( pos );
|
||||
|
|
|
|||
Loading…
Reference in a new issue