Skip to content
This repository
Browse code

Collapsibles: make sure the collapsibles inherit a theme if nothing i…

…s set. Thanks @MauriceG :+1:
  • Loading branch information...
commit b50ea798ef9e8ac0a9775fc48c451939b12baad9 1 parent fbc555f
Jasper de Groot authored July 30, 2012

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  js/widgets/collapsible.js
5  js/widgets/collapsible.js
@@ -71,6 +71,11 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
71 71
 			if ( !o.mini ) {
72 72
 				o.mini = collapsibleSet.jqmData( "mini" );
73 73
 			}
  74
+		} else {
  75
+			// get inherited theme if not a set and no theme has been set
  76
+			if ( !o.theme ) {
  77
+				o.theme = $.mobile.getInheritedTheme( $el, "c" );
  78
+			}
74 79
 		}
75 80
 		
76 81
 		if ( !!o.inset ) {

0 notes on commit b50ea79

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