Permalink
Browse files

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.
  • Loading branch information...
1 parent 9b3aebd commit 3a555d2bcbe21fee770d062a1cc76dd4844ffa51 @adamjudd adamjudd committed Dec 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/ToggleCompositeField.js
@@ -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();

0 comments on commit 3a555d2

Please sign in to comment.