Commit 65eddc00adaa89b93cda204634af84538a91e8ad
1 parent
6eabf90b
Exists in
master
and in
4 other branches
toggle content instead of disabling button for group members editing
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
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() | ... | ... |