debian-mirror-gitlab/app/assets/javascripts/user.js.coffee
2016-06-02 11:05:42 +05:30

17 lines
444 B
CoffeeScript

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
)