summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRegis <boudinot.regis@yahoo.com>2016-09-01 05:38:58 -0600
committerRegis <boudinot.regis@yahoo.com>2016-09-01 05:38:58 -0600
commit195d79dce0ea424aeea78e8ad35ece83bd708641 (patch)
treed69603f761255db892711371a41e803e9476a55b
parent7ed0acd422a95c4cbb1406f67929a5da669f2681 (diff)
downloadgitlab-ce-195d79dce0ea424aeea78e8ad35ece83bd708641.tar.gz
path const and prevent default location
-rw-r--r--app/assets/javascripts/user.js.es64
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/user.js.es6 b/app/assets/javascripts/user.js.es6
index c934afa458a..d644a1c0bc6 100644
--- a/app/assets/javascripts/user.js.es6
+++ b/app/assets/javascripts/user.js.es6
@@ -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;
});
}