gitlabhq/app/assets/javascripts/behaviors/toggler_behavior.coffee

6 lines
141 B
CoffeeScript
Raw Normal View History

2012-11-22 02:08:53 +01:00
$ ->
$("body").on "click", ".js-toggler-target", ->
container = $(@).closest(".js-toggler-container")
container.toggleClass("on")