Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Collapsibles: makes sure only one collapsible in a set is expanded at…
… the same time.
  • Loading branch information
jaspermdegroot committed Jul 23, 2012
1 parent a680d85 commit 1a68e9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/collapsibleSet.js
Expand Up @@ -32,14 +32,14 @@ $.widget( "mobile.collapsibleset", $.mobile.widget, {
o.inset = o.inset !== undefined ? o.inset : true;

// Initialize the collapsible set if it's not already initialized
if ( !$el.jqmData( "collapsiblebound" ) && !!o.inset ) {
if ( !$el.jqmData( "collapsiblebound" ) ) {
$el
.jqmData( "collapsiblebound", true )
.bind( "expand collapse", function( event ) {
var isCollapse = ( event.type === "collapse" ),
collapsible = $( event.target ).closest( ".ui-collapsible" ),
widget = collapsible.data( "collapsible" );
if ( collapsible.jqmData( "collapsible-last" ) ) {
if ( collapsible.jqmData( "collapsible-last" ) && !!o.inset ) {
collapsible.find( ".ui-collapsible-heading" ).first()
.find( "a" ).first()
.toggleClass( "ui-corner-bottom", isCollapse )
Expand Down

0 comments on commit 1a68e9a

Please sign in to comment.