mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-28 12:26:23 +02:00
Set 'active' correctly for accordion widget
The accordion widget was previously being passed true and false, where as it either expects true or the integer of the panel to show. This fix sets it as either false or 0.
This commit is contained in:
parent
9b3aebd310
commit
3a555d2bcb
@ -4,7 +4,7 @@
|
||||
onadd: function() {
|
||||
this.accordion({
|
||||
collapsible: true,
|
||||
active: !this.hasClass("ss-toggle-start-closed")
|
||||
active: (this.hasClass("ss-toggle-start-closed")) ? false : 0
|
||||
});
|
||||
|
||||
this._super();
|
||||
|
Loading…
Reference in New Issue
Block a user