Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joyride works only after called twice #200

Open
lightmar opened this issue Mar 5, 2015 · 7 comments
Open

Joyride works only after called twice #200

lightmar opened this issue Mar 5, 2015 · 7 comments

Comments

@lightmar
Copy link

lightmar commented Mar 5, 2015

Hi,

Thank you for this plugin. When I call Joyride to start it, it doesn't show. Only after I call it again it shows.
On button click I call:

$("#editor-tour").joyride({
/* Options will go here */
});

What is the problem?

Thanks

@JoeWoodward
Copy link

+1

2 similar comments
@EdoardoTona
Copy link

+1

@ziobudda
Copy link

+1

@sturdynut
Copy link

+1

@mrsweaters - This is definitely either an issue or misunderstanding in how to use this plugin. Can you please have a look? The library is definitely great, it would be awesome if I didn't have to call $(...).joyride() twice. Just is icky.

@TehShrike
Copy link

If you want the tour to start right away when you initialize joyride, you need to pass in the option autoStart: true.

If you call joyride after you've already passed in options, it is ignoring the options and just calling joyride('restart').

@gdejong
Copy link

gdejong commented Dec 3, 2015

I had the same issue. Like @TehShrike said, adding:

      $("#joyride").joyride({
        autoStart: true
      });

does the trick!

@zolem
Copy link

zolem commented Nov 10, 2016

This works great. Might be wise to add this to the options list on the web page. I was really confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

9 participants