Commit 5db7c221d82a43c187677d1218075f5a926882e3
1 parent
3ceb80ea
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
site_tour: set cookie expiration date
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/site_tour/public/main.js
@@ -9,7 +9,7 @@ var siteTourPlugin = (function() { | @@ -9,7 +9,7 @@ var siteTourPlugin = (function() { | ||
9 | } | 9 | } |
10 | 10 | ||
11 | function mark(name) { | 11 | function mark(name) { |
12 | - jQuery.cookie("_noosfero_.sitetour." + name, 1); | 12 | + jQuery.cookie("_noosfero_.sitetour." + name, 1, {expires: 365}); |
13 | if(userData.login) { | 13 | if(userData.login) { |
14 | jQuery.post('/plugin/site_tour/public/mark_action', {action_name: name}, function(data) { }); | 14 | jQuery.post('/plugin/site_tour/public/mark_action', {action_name: name}, function(data) { }); |
15 | } | 15 | } |