Skip to content
This repository
Browse code

Collapsibles: makes sure only one collapsible in a set is expanded at…

… the same time.
  • Loading branch information...
commit 1a68e9a8ebd112eaba6495089840cc2e04ccbe24 1 parent a680d85
Jasper de Groot authored

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

  1. 4  js/widgets/collapsibleSet.js
4  js/widgets/collapsibleSet.js
@@ -32,14 +32,14 @@ $.widget( "mobile.collapsibleset", $.mobile.widget, {
32 32
 		o.inset = o.inset !== undefined ? o.inset : true;
33 33
 
34 34
 		// Initialize the collapsible set if it's not already initialized
35  
-		if ( !$el.jqmData( "collapsiblebound" ) && !!o.inset ) {
  35
+		if ( !$el.jqmData( "collapsiblebound" ) ) {
36 36
 			$el
37 37
 				.jqmData( "collapsiblebound", true )
38 38
 				.bind( "expand collapse", function( event ) {
39 39
 					var isCollapse = ( event.type === "collapse" ),
40 40
 						collapsible = $( event.target ).closest( ".ui-collapsible" ),
41 41
 						widget = collapsible.data( "collapsible" );
42  
-					if ( collapsible.jqmData( "collapsible-last" ) ) {
  42
+					if ( collapsible.jqmData( "collapsible-last" ) && !!o.inset ) {
43 43
 						collapsible.find( ".ui-collapsible-heading" ).first()
44 44
 							.find( "a" ).first()
45 45
 							.toggleClass( "ui-corner-bottom", isCollapse )

0 notes on commit 1a68e9a

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