Commits

Chris Perkins committed 986c2e3

fixed arrow expander.

Comments (0)

Files changed (1)

src/tgext/subform/static/javascript/select_field_with_add.js

 
 */
 var toggleSubForm = function(id){
-    var i, c, el, wrapper;
+    //var i, c, el, wrapper;
     var q = dojo.query('#'+id+'_opener');
 
     if (q.length < 1){
     
 
     if (el.className.indexOf('subform-opener-open')>0){
-        el.className = el.className.replace('subform-opener-open', 'subform-opener-close');
+        el.className = el.className.replace('subform-opener-open', 'subform-opener-closed');
         wrapper.style.display='none';
         return;
     }
 
-    if (el.className.indexOf('subform-opener-closed')>0){
+    if (el.className.indexOf('subform-opener-closed')<0){
        el.className = el.className+' subform-opener-open';
     }
     else{