Remember the project default tab for 30days

This commit is contained in:
Hiroyuki Sato 2015-01-23 20:36:53 +09:00
parent cefe81b1bb
commit 22b7d2156c

View file

@ -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")
$.cookie "default_view", $(e.target).attr("href"), { expires: 30 }
defaultView = $.cookie("default_view")
if defaultView