Team:Tec-Monterrey
From 2011.igem.org
(Difference between revisions)
Line 272: | Line 272: | ||
- | |||
- | |||
// go through all tags | // go through all tags | ||
Line 319: | Line 317: | ||
function animateTogglePanel(panel, expanding) | function animateTogglePanel(panel, expanding) | ||
{ | { | ||
+ | |||
+ | if (direction > 0) | ||
+ | collapseAll(); | ||
// find the .panelcontent div | // find the .panelcontent div | ||
var elements = panel.getElementsByTagName("div"); | var elements = panel.getElementsByTagName("div"); |