mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-24 06:03:43 +00:00
Set content-theme to collapsible in a set only if it's not already set
This commit is contained in:
parent
1692c0f378
commit
fb06381176
1 changed files with 6 additions and 1 deletions
|
|
@ -75,7 +75,12 @@ $.widget( "mobile.collapsible", $.mobile.widget, {
|
|||
|
||||
var set = collapsibleParent.children( ":jqmData(role='collapsible')" );
|
||||
|
||||
set.jqmData( "content-theme", collapsibleParent.jqmData( "content-theme" ) );
|
||||
set.each(function() {
|
||||
var $this = $( this );
|
||||
if ( !$this.jqmData( "content-theme" ) ) {
|
||||
$this.jqmData( "content-theme", collapsibleParent.jqmData( "content-theme" ) );
|
||||
}
|
||||
});
|
||||
|
||||
set.first()
|
||||
.find( "a:eq(0)" )
|
||||
|
|
|
|||
Loading…
Reference in a new issue