Add JS behaviors

This commit is contained in:
Riyad Preukschas 2012-10-29 18:24:25 +01:00
parent a58385247d
commit a048c955fd
4 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,5 @@
$ ->
$("body").on "click", ".js-details-target", ->
container = $(@).closest ".js-details-container"
container.toggleClass "open"

View file

@ -0,0 +1,5 @@
$ ->
$("body").on "click", ".js-toggler-target", ->
container = $(@).closest ".js-toggler-container"
container.toggleClass "on"