Commit 73d17ca11da2fbaaa46903cc700089088797891e
1 parent
158beea2
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 | } |