Commit 195d79dc authored by Regis's avatar Regis

path const and prevent default location

parent 7ed0acd4
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
hideProjectLimitMessage() { hideProjectLimitMessage() {
$('.hide-project-limit-message').on('click', e => { $('.hide-project-limit-message').on('click', e => {
const path = '/'; e.preventDefault();
const path = gon.relative_url_root || '/';
$.cookie('hide_project_limit_message', 'false', { $.cookie('hide_project_limit_message', 'false', {
path: path path: path
}); });
$(this).parents('.project-limit-message').remove(); $(this).parents('.project-limit-message').remove();
e.preventDefault();
return; return;
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment