summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/behaviours/details_behavior.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/behaviours/details_behavior.coffee')
-rw-r--r--app/assets/javascripts/behaviours/details_behavior.coffee5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/behaviours/details_behavior.coffee b/app/assets/javascripts/behaviours/details_behavior.coffee
new file mode 100644
index 00000000000..f75284d9cf6
--- /dev/null
+++ b/app/assets/javascripts/behaviours/details_behavior.coffee
@@ -0,0 +1,5 @@
+$ ->
+ $("body").on "click", ".js-details-target", ->
+ container = $(@).closest ".js-details-container"
+
+ container.toggleClass "open"