diff options
author | Andrew Tomaka <atomaka@gmail.com> | 2015-12-03 03:02:15 +0300 |
---|---|---|
committer | Andrew Tomaka <atomaka@gmail.com> | 2015-12-05 19:32:08 +0300 |
commit | 1c53dc28b505f2853750ed4ea8b954385c5bf598 (patch) | |
tree | 2906c8f55dd83e8aec787d8ff2d01f8dfedc573d /app/assets/javascripts/user.js.coffee | |
parent | d2f9a9012d55a7dc9c8e9e61b946c52836a1d8f1 (diff) |
Notify user if they cannot create projects
Diffstat (limited to 'app/assets/javascripts/user.js.coffee')
-rw-r--r-- | app/assets/javascripts/user.js.coffee | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/user.js.coffee b/app/assets/javascripts/user.js.coffee index d0d81f96921..ec4271b092c 100644 --- a/app/assets/javascripts/user.js.coffee +++ b/app/assets/javascripts/user.js.coffee @@ -2,3 +2,9 @@ class @User constructor: -> $('.profile-groups-avatars').tooltip("placement": "top") new ProjectsList() + + $('.hide-project-limit-message').on 'click', (e) -> + path = '/' + $.cookie('hide_project_limit_message', 'false', { path: path }) + $(@).parents('.project-limit-message').remove() + e.preventDefault() |