From 65eddc00adaa89b93cda204634af84538a91e8ad Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 6 Aug 2013 18:49:37 +0300 Subject: [PATCH] toggle content instead of disabling button for group members editing --- app/assets/javascripts/behaviors/toggler_behavior.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/behaviors/toggler_behavior.coffee b/app/assets/javascripts/behaviors/toggler_behavior.coffee index c01db203619..7e438c51c1c 100644 --- a/app/assets/javascripts/behaviors/toggler_behavior.coffee +++ b/app/assets/javascripts/behaviors/toggler_behavior.coffee @@ -13,6 +13,5 @@ $ -> e.preventDefault() $("body").on "click", ".js-toggle-button", (e) -> - $(@).disableButton() - $(@).closest(".js-toggle-container").find(".js-toggle-content").show() + $(@).closest(".js-toggle-container").find(".js-toggle-content").toggle() e.preventDefault()