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

Commit

Permalink
disable back buttons for steps that are multipage
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Jul 27, 2012
1 parent c1c4acd commit 1a0884b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion js/exampletour.js
Expand Up @@ -36,6 +36,7 @@ var tour = {
targetId: 'firstpagelink',
orientation: 'bottom',
showNextBtn: false,
showPrevBtn: false,
multiPage: true // this indicates that next step will be on a different page
},
{
Expand All @@ -45,7 +46,8 @@ var tour = {
orientation: 'bottom',
width: 500,
xOffset: -50,
arrowOffset: 400
arrowOffset: 400,
showPrevBtn: false
},
{
title: 'Python decorator',
Expand Down
4 changes: 3 additions & 1 deletion js/hopscotch.js
Expand Up @@ -20,6 +20,8 @@
*
* in addition to targetId, do we want to support specifying targetEl directly?
*
* how to i18n the step numbers?
*
* http://daneden.me/animate/ for bounce animation
*
*/
Expand Down Expand Up @@ -314,7 +316,7 @@
this.renderStep = function(step, idx, isLast, callback) {
var self = this,
showNext = (typeof step.showNextBtn === 'undefined' || step.showNextBtn),
showPrev = (typeof step.showPrev === 'undefined' || step.showPrev),
showPrev = (typeof step.showPrevBtn === 'undefined' || step.showPrevBtn),
bubbleWidth,
bubblePadding;

Expand Down

0 comments on commit 1a0884b

Please sign in to comment.