Skip to content
This repository
Browse code

BUG Enforce startClosed prop on ToggleCompositeField

  • Loading branch information...
commit b4ecc308a12bd3cc095bcce39b8a234e87322ff2 1 parent aa76aca
Ingo Schommer authored July 15, 2012

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  javascript/ToggleCompositeField.js
8  javascript/ToggleCompositeField.js
@@ -2,10 +2,10 @@
2 2
 	$.entwine('ss', function($){
3 3
 		$('.ss-toggle').entwine({
4 4
 			onadd: function() {
5  
-				opts = {collapsible: true};
6  
-				if (this.hasClass("ss-toggle-start-closed")) opts.active = false;
7  
-
8  
-				this.accordion({ collapsible: true });
  5
+				this.accordion({
  6
+					collapsible: true,
  7
+					active: !this.hasClass("ss-toggle-start-closed")
  8
+				});
9 9
 
10 10
 				this._super();
11 11
 			},

0 notes on commit b4ecc30

Please sign in to comment.
Something went wrong with that request. Please try again.