Skip to content

Commit

Permalink
bugfix: Wrong bullet highlighted
Browse files Browse the repository at this point in the history
When starting introJs at a step != 0 the active bullet was not set correctly (always the first bullet gets active).
  • Loading branch information
AlexanderKoehn committed Apr 3, 2014
1 parent 10fab7d commit e7c3cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@
self.goToStep(this.getAttribute('data-stepnumber'));
};

if (i === 0) anchorLink.className = "active";
if (i === (targetElement.step-1)) anchorLink.className = "active";

anchorLink.href = 'javascript:void(0);';
anchorLink.innerHTML = " ";
Expand Down

0 comments on commit e7c3cfe

Please sign in to comment.