Commit 65eddc00adaa89b93cda204634af84538a91e8ad

Authored by Dmitriy Zaporozhets
1 parent 6eabf90b

toggle content instead of disabling button for group members editing

app/assets/javascripts/behaviors/toggler_behavior.coffee
... ... @@ -13,6 +13,5 @@ $ ->
13 13 e.preventDefault()
14 14  
15 15 $("body").on "click", ".js-toggle-button", (e) ->
16   - $(@).disableButton()
17   - $(@).closest(".js-toggle-container").find(".js-toggle-content").show()
  16 + $(@).closest(".js-toggle-container").find(".js-toggle-content").toggle()
18 17 e.preventDefault()
... ...