Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #37 from nre-learning/fix-nextlab-button
Browse files Browse the repository at this point in the history
Change "next lab" button text to be more intuitive on the last lab
  • Loading branch information
Mierdin authored Feb 9, 2019
2 parents ca41221 + 140f389 commit eac35be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Implement Advisor functionality [#30](https://github.com/nre-learning/antidote-web/pull/30)
- Added ability to use jupyter notebook as lab guide [#33](https://github.com/nre-learning/antidote-web/pull/33)
- Add verify functionality to front-end [#34](https://github.com/nre-learning/antidote-web/pull/34)
- Change "next lab" button text to be more intuitive on the last lab [#37](https://github.com/nre-learning/antidote-web/pull/37)

## 0.2.0 - January 24, 2019

Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/js/antidote.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,13 @@ async function requestLesson() {
}

var nextLessonStage = parseInt(getLessonStage()) + 1
console.log(nextLessonStage)
console.log(lessonStageCount)
if (nextLessonStage <= lessonStageCount) {
document.getElementById("gotoNextStage").href = "/labs/?lessonId=" + getLessonId() + "&lessonStage=" + nextLessonStage
$("#gotoNextStage").removeClass('disabled');
$("#gotoNextStage")[0].innerText = 'Go to the next lab in this lesson!'
} else {
$("#gotoNextStage").addClass('disabled');
$("#gotoNextStage")[0].innerText = "That's it for this lesson!"
}

getLessonCategories()
Expand Down

0 comments on commit eac35be

Please sign in to comment.