a7e0ca9e83
Present in the large majority of files of each respective type.
17 lines
484 B
CoffeeScript
17 lines
484 B
CoffeeScript
class GroupMembers
|
|
constructor: ->
|
|
$('li.users_group').bind 'ajax:success', ->
|
|
$(this).fadeOut()
|
|
|
|
@GroupMembers = GroupMembers
|
|
|
|
$ ->
|
|
# 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)
|