summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-02-29 16:39:20 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-02-29 16:39:20 -0500
commit97400ef8525c58174e42f3afd55978607cbfeca7 (patch)
tree78366d3a2f0442120682ca1acb004b34b300aab0 /app/assets
parentd941aee4001e002045b10997cd268c87820832a8 (diff)
downloadgitlab-ce-97400ef8525c58174e42f3afd55978607cbfeca7.tar.gz
Handle user tabs
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/user.js.coffee5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/user.js.coffee b/app/assets/javascripts/user.js.coffee
index ec4271b092c..417e1450002 100644
--- a/app/assets/javascripts/user.js.coffee
+++ b/app/assets/javascripts/user.js.coffee
@@ -3,8 +3,13 @@ class @User
$('.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()