diff options
Diffstat (limited to 'assets/js/components/accordion.js')
-rw-r--r-- | assets/js/components/accordion.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/assets/js/components/accordion.js b/assets/js/components/accordion.js index 4588ccc6..f64768b6 100644 --- a/assets/js/components/accordion.js +++ b/assets/js/components/accordion.js @@ -1,8 +1,7 @@ KB.onClick('.accordion-toggle', function(e) { - var section = KB.dom(e.target).parent('.accordion-section'); + var sectionElement = KB.dom(e.target).parent('.accordion-section'); - if (section) { - KB.dom(section).toggleClass('accordion-collapsed'); - KB.dom(KB.dom(section).find('.accordion-content')).toggle(); + if (sectionElement) { + KB.dom(sectionElement).toggleClass('accordion-collapsed'); } }); |