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

user.js.coffee « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2882a90d118ba0107f915546735ef289d38b3df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class @User
  constructor: (@opts) ->
    $('.profile-groups-avatars').tooltip("placement": "top")

    @initTabs()

    $('.hide-project-limit-message').on 'click', (e) ->
      path = '/'
      $.cookie('hide_project_limit_message', 'false', { path: path })
      $(@).parents('.project-limit-message').remove()
      e.preventDefault()

  initTabs: ->
    new UserTabs(
        parentEl: '.user-profile'
        action: @opts.action
      )