Welcome to mirror list, hosted at ThFree Co, Russian Federation.

group_avatar.js.coffee « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0825fd3ce52531a6873bf299e32428a16280e43a (plain)
1
2
3
4
5
6
7
8
9
class @GroupAvatar
  constructor: ->
    $('.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)