diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-10-25 00:54:38 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-10-25 02:09:00 +0300 |
commit | f8520f5d096a7b62649c7465491003b3317c5e75 (patch) | |
tree | ca6b7b89e257822c3c39a91dc8dbc99a5526875a /app/assets/javascripts/project.js | |
parent | 1c0213f28e423b28c17bf7b377086a782ba88b50 (diff) |
remove manual Cookie.set "path" option in favor of global setting
Diffstat (limited to 'app/assets/javascripts/project.js')
-rw-r--r-- | app/assets/javascripts/project.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/assets/javascripts/project.js b/app/assets/javascripts/project.js index 6505d30f1ca..b370e6bb9f8 100644 --- a/app/assets/javascripts/project.js +++ b/app/assets/javascripts/project.js @@ -23,16 +23,12 @@ return $(this).parents('form').submit(); }); $('.hide-no-ssh-message').on('click', function(e) { - Cookies.set('hide_no_ssh_message', 'false', { - path: gon.relative_url_root || '/' - }); + Cookies.set('hide_no_ssh_message', 'false'); $(this).parents('.no-ssh-key-message').remove(); return e.preventDefault(); }); $('.hide-no-password-message').on('click', function(e) { - Cookies.set('hide_no_password_message', 'false', { - path: gon.relative_url_root || '/' - }); + Cookies.set('hide_no_password_message', 'false'); $(this).parents('.no-password-message').remove(); return e.preventDefault(); }); |