diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-07-13 21:54:24 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-07-13 21:54:24 +0300 |
commit | 262da1f1513fb08b8bb35f4ebef37e2a508e0180 (patch) | |
tree | 07225da8c114d2c803d4e91954b4532a2bbd2c36 /app | |
parent | c3c1a357664412f1dc88aa4c9adca4886f723827 (diff) | |
parent | 6900dff23d70ea59b13b299a9966378ed3e0358f (diff) |
Merge branch 'reload-new-navigation-option-change' into 'master'
Reload page after changing navigation preference
Closes #34968
See merge request !12833
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/experimental_flags.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/experimental_flags.js b/app/assets/javascripts/experimental_flags.js index dbd3843cef7..6ee65ca72f9 100644 --- a/app/assets/javascripts/experimental_flags.js +++ b/app/assets/javascripts/experimental_flags.js @@ -7,5 +7,8 @@ export default () => { Cookies.set(el.name, el.value, { expires: 365 * 10, }); + + document.body.scrollTop = 0; + window.location.reload(); }); }; |