diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-06 01:41:29 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-06 01:41:47 -0800 |
commit | 8b53d9efe648f10e0572c2d8017489d0d3bb4755 (patch) | |
tree | 1827fb101fb95ab29e04ab4d4114adfea2e5fe3f /app | |
parent | 06ad715e4cc962c799ba9fba5ef37a91a2e214f5 (diff) | |
download | gitlab-ce-8b53d9efe648f10e0572c2d8017489d0d3bb4755.tar.gz |
Fix bug with active tab remembering (saving cookie with different path)
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/project_show.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/project_show.js.coffee b/app/assets/javascripts/project_show.js.coffee index d0eaaad92b8..6828ae471e5 100644 --- a/app/assets/javascripts/project_show.js.coffee +++ b/app/assets/javascripts/project_show.js.coffee @@ -6,7 +6,7 @@ class @ProjectShow new Flash('Star toggle failed. Try again later.', 'alert') $("a[data-toggle='tab']").on "shown.bs.tab", (e) -> - $.cookie "default_view", $(e.target).attr("href"), { expires: 30 } + $.cookie "default_view", $(e.target).attr("href"), { expires: 30, path: '/' } defaultView = $.cookie("default_view") if defaultView |