Skip to content

Commit 1075e60

Browse files
committed
last step will disable next button
1 parent 4835b33 commit 1075e60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/angular-bootstrap-tour.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
var ordered = $filter('orderBy')(steps, 'order');
125125

126126
angular.forEach(ordered, function (step, index) {
127-
step.next = index + 1;
127+
step.next = ordered[index + 1] ? index + 1 : - 1;
128128
step.prev = index - 1;
129129
});
130130

0 commit comments

Comments
 (0)