From 0b09e72792b8ec0ee2da84142bee6f9c923a96ec Mon Sep 17 00:00:00 2001 From: Gordon Koo Date: Tue, 28 Aug 2012 11:25:09 -0700 Subject: [PATCH] hide bubble on prevbtn click (for autoscroll) --- js/hopscotch.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/hopscotch.js b/js/hopscotch.js index 18459b19..2a95d77b 100644 --- a/js/hopscotch.js +++ b/js/hopscotch.js @@ -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); @@ -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) { @@ -1095,7 +1094,8 @@ } } - self.showStep(currStepNum, currSubstepNum); + utils.addClass(bubble.element, 'invisible'); + this.showStep(currStepNum, currSubstepNum); return this; };