{"action":"closed","issue":{"url":"https://api.github.com/repos/zurb/foundation/issues/5389","labels_url":"https://api.github.com/repos/zurb/foundation/issues/5389/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation/issues/5389/comments","events_url":"https://api.github.com/repos/zurb/foundation/issues/5389/events","html_url":"https://github.com/zurb/foundation/issues/5389","id":36674856,"number":5389,"title":"joyride cookies","user":{"login":"laantorchaweb","id":930943,"avatar_url":"https://avatars.githubusercontent.com/u/930943?v=3","gravatar_id":"","url":"https://api.github.com/users/laantorchaweb","html_url":"https://github.com/laantorchaweb","followers_url":"https://api.github.com/users/laantorchaweb/followers","following_url":"https://api.github.com/users/laantorchaweb/following{/other_user}","gists_url":"https://api.github.com/users/laantorchaweb/gists{/gist_id}","starred_url":"https://api.github.com/users/laantorchaweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laantorchaweb/subscriptions","organizations_url":"https://api.github.com/users/laantorchaweb/orgs","repos_url":"https://api.github.com/users/laantorchaweb/repos","events_url":"https://api.github.com/users/laantorchaweb/events{/privacy}","received_events_url":"https://api.github.com/users/laantorchaweb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zurb/foundation/labels/joyride","name":"joyride","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-06-27T15:18:12Z","updated_at":"2015-02-11T23:43:31Z","closed_at":"2015-02-11T23:43:31Z","body":"I'm trying to show the site tours just once on my page, it's and Ember single page app. I have two joyride tours in diferente routes.\r\n\r\nIf I place the data options on the ```ol``` joyride never fires:\r\n\r\n````javascript\r\n<ol class=\"joyride-list\" data-joyride data-options=\"cookie_monster:true;\">\r\n```\r\nI can set this options when I initialize the plugin, but this doens't work either, I managed to make it work using the solution proposed in here:\r\n\r\nhttps://stackoverflow.com/questions/21928203/foundation-joyride-start-only-on-first-load-isuue\r\n\r\n\"The problem is $.cookie(this.settings.cookie_name) returns undefined (at least on my own installation it does) not null therefore if you set cookie_monster to true, joyride's start will never be called.\"\r\n\r\nBut, this solution is not enough for me because I have two site tours so I need to manage two different cookies, the best option would be to set the cookie name with the data attr, but I can't make it work. \r\n\r\nAny ideas on how to use the data-options for managing cookies?\r\n\r\nthanks!"}}