BigW Consortium Gitlab

user.js.coffee 444 Bytes
Newer Older
1
class @User
2
  constructor: (@opts) ->
3
    $('.profile-groups-avatars').tooltip("placement": "top")
4

Alfredo Sumaran committed
5 6
    @initTabs()

7 8 9 10 11
    $('.hide-project-limit-message').on 'click', (e) ->
      path = '/'
      $.cookie('hide_project_limit_message', 'false', { path: path })
      $(@).parents('.project-limit-message').remove()
      e.preventDefault()
Alfredo Sumaran committed
12 13

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