Index: static/js/main.js |
=================================================================== |
--- a/static/js/main.js |
+++ b/static/js/main.js |
@@ -188,16 +188,16 @@ |
Accordion.prototype._onClick = function(event) |
{ |
if (!event.target.classList.contains("accordion-toggle-button")) return; |
this.toggleSection(event.target); |
} |
- var accordions = document.getElementsByClassName('accordion'); |
- for (var i = 0; i < accordions.length; i++) |
+ var productTopicsAccordion = document.getElementById('product-topics-accordion'); |
+ if (productTopicsAccordion) |
{ |
- new Accordion(accordions[i]); |
+ new Accordion(productTopicsAccordion); |
} |
}, false); |
}()); |