mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Enforce startClosed prop on ToggleCompositeField
This commit is contained in:
parent
aa76aca10d
commit
b4ecc308a1
@ -2,10 +2,10 @@
|
||||
$.entwine('ss', function($){
|
||||
$('.ss-toggle').entwine({
|
||||
onadd: function() {
|
||||
opts = {collapsible: true};
|
||||
if (this.hasClass("ss-toggle-start-closed")) opts.active = false;
|
||||
|
||||
this.accordion({ collapsible: true });
|
||||
this.accordion({
|
||||
collapsible: true,
|
||||
active: !this.hasClass("ss-toggle-start-closed")
|
||||
});
|
||||
|
||||
this._super();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user