Fixes #3028 — Listviews themselves are now inheriting the theme set at the page level. Individual list items remain themeable.

This commit is contained in:
Mat Marquis 2011-11-14 12:02:03 -05:00
parent b90eab4935
commit f62c5c01b3

View file

@ -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 );