diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-20 15:45:02 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-20 15:45:02 -0400 |
commit | f77d6c590bf683377986064113ddddae9ed443c2 (patch) | |
tree | 9ac56f1658814c381cdc161492454143e5d0462a /assets/js/src/Accordion.js | |
parent | 787e91ca415ff2282a1b3328c6a1b28b23596ddc (diff) |
Added Markdown editor and Javascript code refactoring
Diffstat (limited to 'assets/js/src/Accordion.js')
-rw-r--r-- | assets/js/src/Accordion.js | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |