zurb / joyride

jQuery feature tour plugin.
http://www.zurb.com/playground/jquery-joyride-feature-tour-plugin
1.42k stars 238 forks source link

Zurb Joyride not following defined order... #143

Closed r3hab-media closed 11 years ago

r3hab-media commented 11 years ago

Please review my Sample Fiddle

When it initiates, it starts with the First Stop, and moves onto the Second and Third Stops. When it's ready to move onto the Fourth Stop, it skips and immediately jumps to a modal.

Everything is setup the way the documentation states.

This is the script to call the function...

 $(window).load(function() {
    $('#joyRideTipContent').joyride({
      autoStart : true,
      postStepCallback : function (index, tip) {
      if (index == 2) {
        $(this).joyride('set_li', false, 1);
      }
    },
    modal:true,
    expose: true
    });
  });

I'm completely lost on why this element would be skipped.

r3hab-media commented 11 years ago

Fixed it! I removed this...

postStepCallback : function (index, tip) {
      if (index == 2) {
        $(this).joyride('set_li', false, 1);
      }
    }

This is really something you should put in your documentation.