Team:Tec-Monterrey/teamfriends
From 2011.igem.org
(Difference between revisions)
Line 341: | Line 341: | ||
var direction = (!expanding ? -1 : 1); | var direction = (!expanding ? -1 : 1); | ||
+ | if (direction > 0) | ||
+ | collapseAll(); | ||
setTimeout(function(){animateStep(panelContent,1,stepHeight,direction)}, PANEL_ANIMATION_DELAY); | setTimeout(function(){animateStep(panelContent,1,stepHeight,direction)}, PANEL_ANIMATION_DELAY); | ||
} | } |