Remember the project default tab for 30days
This commit is contained in:
parent
cefe81b1bb
commit
22b7d2156c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue