Commit 195d79dc authored by Regis's avatar Regis

path const and prevent default location

parent 7ed0acd4
......@@ -22,12 +22,12 @@
hideProjectLimitMessage() {
$('.hide-project-limit-message').on('click', e => {
const path = '/';
e.preventDefault();
const path = gon.relative_url_root || '/';
$.cookie('hide_project_limit_message', 'false', {
path: path
});
$(this).parents('.project-limit-message').remove();
e.preventDefault();
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