Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.

Commit 6ccc4b5

Browse files
committed
Turning off layer numbers
Turning off layered numbers was not working for me (at least in Chrome version 30.0.1599.101). The problem was that the statements for setting the "showStepNumbers" option would always execute, even when its value was set to "false". Setting the conditional if statement to be compared with the "true" value explicitly fixed the problem. So: //add helper layer number if (this._options.showStepNumbers == true) { ... }
1 parent 4743f30 commit 6ccc4b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intro.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@
464464
'</div><div class="introjs-tooltipbuttons"></div>';
465465

466466
//add helper layer number
467-
if (this._options.showStepNumbers) {
467+
if (this._options.showStepNumbers == true) {
468468
var helperNumberLayer = document.createElement('span');
469469
helperNumberLayer.className = 'introjs-helperNumberLayer';
470470
helperNumberLayer.innerHTML = targetElement.step;

0 commit comments

Comments
 (0)