Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prev button text #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/enjoyhint.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
var _options = configs || {};
var BTN_NEXT_TEXT = _options.btnNextText;
var BTN_SKIP_TEXT = _options.btnSkipText;

var BTN_PREV_TEXT = _options.btnPrevText;

var SHAPE_BACKGROUND_COLOR = _options.backgroundColor || "rgba(0,0,0,0.6)";

var body = "body"; // TODO: Is it possible case when we need to define enjoyhint somewhere else?
Expand Down Expand Up @@ -216,7 +217,7 @@
var $prevBtn = $(".enjoyhint_prev_btn");

$prevBtn.addClass(step_data.prevButton.className || "");
$prevBtn.text(step_data.prevButton.text || "Previous");
$prevBtn.text(step_data.prevButton.text || BTN_PREV_TEXT || "Previous");
that.prevUserClass = step_data.prevButton.className;
}

Expand Down