Rename JS behaviors

This commit is contained in:
Riyad Preukschas 2012-11-22 02:08:53 +01:00
parent 918dc87376
commit 5d3fb35cd1
4 changed files with 10 additions and 10 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")

View File

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

View File

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