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

Commit 1a0884b

Browse files
author
Gordon Koo
committed
disable back buttons for steps that are multipage
1 parent c1c4acd commit 1a0884b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

js/exampletour.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var tour = {
3636
targetId: 'firstpagelink',
3737
orientation: 'bottom',
3838
showNextBtn: false,
39+
showPrevBtn: false,
3940
multiPage: true // this indicates that next step will be on a different page
4041
},
4142
{
@@ -45,7 +46,8 @@ var tour = {
4546
orientation: 'bottom',
4647
width: 500,
4748
xOffset: -50,
48-
arrowOffset: 400
49+
arrowOffset: 400,
50+
showPrevBtn: false
4951
},
5052
{
5153
title: 'Python decorator',

js/hopscotch.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*
2121
* in addition to targetId, do we want to support specifying targetEl directly?
2222
*
23+
* how to i18n the step numbers?
24+
*
2325
* http://daneden.me/animate/ for bounce animation
2426
*
2527
*/
@@ -314,7 +316,7 @@
314316
this.renderStep = function(step, idx, isLast, callback) {
315317
var self = this,
316318
showNext = (typeof step.showNextBtn === 'undefined' || step.showNextBtn),
317-
showPrev = (typeof step.showPrev === 'undefined' || step.showPrev),
319+
showPrev = (typeof step.showPrevBtn === 'undefined' || step.showPrevBtn),
318320
bubbleWidth,
319321
bubblePadding;
320322

0 commit comments

Comments
 (0)