diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-06 19:45:45 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-06 19:45:45 +0400 |
commit | 6eabf90b804e199f6a9c2b96ac4b293405da9897 (patch) | |
tree | 131ea71ec9f6a2008ec6a0b3580ce9854ec496ca /app/assets/javascripts/behaviors | |
parent | f8137075d5a615e968a4b63af13e1c51c36153df (diff) |
Ability to edit group member permissions
Diffstat (limited to 'app/assets/javascripts/behaviors')
-rw-r--r-- | app/assets/javascripts/behaviors/toggler_behavior.coffee | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/behaviors/toggler_behavior.coffee b/app/assets/javascripts/behaviors/toggler_behavior.coffee index d2181e7b759..c01db203619 100644 --- a/app/assets/javascripts/behaviors/toggler_behavior.coffee +++ b/app/assets/javascripts/behaviors/toggler_behavior.coffee @@ -11,3 +11,8 @@ $ -> container = $(".js-toggle-visibility-container") container.toggleClass("hide") e.preventDefault() + + $("body").on "click", ".js-toggle-button", (e) -> + $(@).disableButton() + $(@).closest(".js-toggle-container").find(".js-toggle-content").show() + e.preventDefault() |