From f77d6c590bf683377986064113ddddae9ed443c2 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 20 Mar 2016 15:45:02 -0400 Subject: Added Markdown editor and Javascript code refactoring --- assets/js/src/Accordion.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'assets/js/src/Accordion.js') diff --git a/assets/js/src/Accordion.js b/assets/js/src/Accordion.js index d3c17151..f05dc5ff 100644 --- a/assets/js/src/Accordion.js +++ b/assets/js/src/Accordion.js @@ -1,11 +1,11 @@ -function Accordion(app) { +Kanboard.Accordion = function(app) { this.app = app; -} +}; -Accordion.prototype.listen = function() { +Kanboard.Accordion.prototype.listen = function() { $(document).on("click", ".accordion-toggle", function(e) { - e.preventDefault(); var section = $(this).parents(".accordion-section"); + e.preventDefault(); if (section.hasClass("accordion-collapsed")) { section.find(".accordion-content").show(); -- cgit v1.2.3