Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 jaspermdegroot authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/collapsibleSet.js
4 js/widgets/collapsibleSet.js
View
@@ -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 )
Please sign in to comment.
Something went wrong with that request. Please try again.