gitlabhq/app/assets/javascripts/behaviors/toggler_behavior.coffee
2012-12-03 22:51:56 +01:00

5 lines
141 B
CoffeeScript

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