diff --git a/CHANGELOG.md b/CHANGELOG.md index 8639fd8..944fdff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/main/webapp/js/antidote.js b/src/main/webapp/js/antidote.js index c3288b1..1c45192 100644 --- a/src/main/webapp/js/antidote.js +++ b/src/main/webapp/js/antidote.js @@ -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()