BUG Enforce startClosed prop on ToggleCompositeField

This commit is contained in:
Ingo Schommer 2012-07-15 20:53:33 +02:00
parent aa76aca10d
commit b4ecc308a1

View File

@ -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();
},