Skip to content
Browse files

Fixes #3028 — Listviews themselves are now inheriting the theme set a…

…t the page level. Individual list items remain themeable.
  • Loading branch information...
1 parent b90eab4 commit f62c5c01b3ee7da1ccbbe60d48d05a723abea4bf @Wilto Wilto committed Nov 14, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/jquery.mobile.listview.js
View
6 js/jquery.mobile.listview.js
@@ -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 );

0 comments on commit f62c5c0

Please sign in to comment.
Something went wrong with that request. Please try again.