Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
hide bubble on prevbtn click (for autoscroll)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Aug 28, 2012
1 parent c999f61 commit 0b09e72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/hopscotch.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@
}, 50);
}
else {
utils.removeClass(self.element, 'hide');
utils.addClass(self.element, className);
utils.removeClass(this.element, 'hide');
utils.addClass(this.element, className);
setTimeout(function() {
utils.removeClass(self.element, 'invisible');
}, 50);
Expand Down Expand Up @@ -1063,8 +1063,7 @@
this.prevStep = function() {
var step = getCurrStep(),
foundTarget = false,
bubble = getBubble(),
self = this;
bubble = getBubble();

utils.invokeCallbacks('prev', [currTour.id, currStepNum]);
if (step.onPrev) {
Expand Down Expand Up @@ -1095,7 +1094,8 @@
}
}

self.showStep(currStepNum, currSubstepNum);
utils.addClass(bubble.element, 'invisible');
this.showStep(currStepNum, currSubstepNum);

return this;
};
Expand Down

0 comments on commit 0b09e72

Please # to comment.