diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-12 12:19:23 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-12 12:19:23 +0400 |
commit | b983e9ef0a599c591606d30a450b9fe7e78c6c85 (patch) | |
tree | a312ca5346c0f15f4fcf5ca4f37b8be3a3d76c0f /app/assets/javascripts/project.js.coffee | |
parent | 986697a99bde07ea0d7e878f8618f801b6b81a8c (diff) |
Add ability to hide no ssh key message
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/assets/javascripts/project.js.coffee')
-rw-r--r-- | app/assets/javascripts/project.js.coffee | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/project.js.coffee b/app/assets/javascripts/project.js.coffee index bdb18574b6d..b12f045e375 100644 --- a/app/assets/javascripts/project.js.coffee +++ b/app/assets/javascripts/project.js.coffee @@ -40,3 +40,8 @@ $ -> # Ref switcher $('.project-refs-select').on 'change', -> $(@).parents('form').submit() + + $('.hide-no-ssh-message').on 'click', (e) -> + $.cookie('hide_no_ssh_message', 'false') + $(@).parents('.no-ssh-key-message').hide() + e.preventDefault() |