Commit 22b7d215 authored by Hiroyuki Sato's avatar Hiroyuki Sato

Remember the project default tab for 30days

parent cefe81b1
...@@ -6,7 +6,7 @@ class @ProjectShow ...@@ -6,7 +6,7 @@ class @ProjectShow
new Flash('Star toggle failed. Try again later.', 'alert') new Flash('Star toggle failed. Try again later.', 'alert')
$("a[data-toggle='tab']").on "shown.bs.tab", (e) -> $("a[data-toggle='tab']").on "shown.bs.tab", (e) ->
$.cookie "default_view", $(e.target).attr("href") $.cookie "default_view", $(e.target).attr("href"), { expires: 30 }
defaultView = $.cookie("default_view") defaultView = $.cookie("default_view")
if defaultView if defaultView
......
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