summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/user.js.coffee
blob: 10ac064f9fcc71167c2ae82e99b9465d75e0dcfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class @User
  constructor: (@opts) ->
    $('.profile-groups-avatars').tooltip("placement": "top")
    new ProjectsList()

    @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
      )