Skip to content

Commit a0847cd

Browse files
author
AZhurav1ev
committed
Custom button name bug fixed
1 parent 6c3f8dc commit a0847cd

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

enjoyhint.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,11 @@
284284
margin: step_data.margin,
285285
scroll: step_data.scroll
286286
};
287-
287+
288+
if (step_data.nextButton) {
289+
shape_data.nextBtnInitValue = step_data.nextButton.text
290+
}
291+
288292
if (shape_data.center_x === 0 && shape_data.center_y === 0) {
289293
$body.enjoyhint("hide");
290294
destroyEnjoy();
@@ -1421,8 +1425,8 @@
14211425
else {
14221426
distance = initial_distance;
14231427
ver_button_position = initial_ver_position;
1424-
// that.$next_btn.html('Next');
1425-
// that.$prev_btn.html('Previous');
1428+
that.$next_btn.html(that.stepData.nextBtnInitValue || 'Next');
1429+
that.$prev_btn.html('Previous');
14261430
}
14271431

14281432
that.$prev_btn.css({

0 commit comments

Comments
 (0)