diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-21 02:49:59 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-21 12:46:55 +0400 |
commit | 38670a663c30ed2fb2b10ac51d5d6bc56b4101a3 (patch) | |
tree | 1220338f5eb15ecbd171a15ff81302b09cb42250 /app/assets/javascripts/groups.js.coffee | |
parent | c3b81e5f400ebc935683fc2cf0e561b2b17a1052 (diff) |
Only run avatar chooser Js on pages that need it
Diffstat (limited to 'app/assets/javascripts/groups.js.coffee')
-rw-r--r-- | app/assets/javascripts/groups.js.coffee | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/assets/javascripts/groups.js.coffee b/app/assets/javascripts/groups.js.coffee index 90122044248..cc905e91ea2 100644 --- a/app/assets/javascripts/groups.js.coffee +++ b/app/assets/javascripts/groups.js.coffee @@ -2,14 +2,3 @@ class @GroupMembers constructor: -> $('li.group_member').bind 'ajax:success', -> $(this).fadeOut() - -$ -> - # avatar - $('.js-choose-group-avatar-button').bind "click", -> - form = $(this).closest("form") - form.find(".js-group-avatar-input").click() - - $('.js-group-avatar-input').bind "change", -> - form = $(this).closest("form") - filename = $(this).val().replace(/^.*[\\\/]/, '') - form.find(".js-avatar-filename").text(filename) |