Commit defaff35 by Tim Krones

Show review step when clicking on "Review grade" button.

parent 987e5837
...@@ -109,9 +109,15 @@ function MentoringWithStepsBlock(runtime, element) { ...@@ -109,9 +109,15 @@ function MentoringWithStepsBlock(runtime, element) {
} }
} }
function showGrade() {
cleanAll();
reviewStep.show();
}
function handleTryAgain(result) { function handleTryAgain(result) {
activeStep = result.active_step; activeStep = result.active_step;
updateDisplay(); updateDisplay();
reviewStep.hide();
tryAgainDOM.hide(); tryAgainDOM.hide();
submitDOM.show(); submitDOM.show();
if (! isLastStep()) { if (! isLastStep()) {
...@@ -143,6 +149,7 @@ function MentoringWithStepsBlock(runtime, element) { ...@@ -143,6 +149,7 @@ function MentoringWithStepsBlock(runtime, element) {
nextDOM.show(); nextDOM.show();
reviewDOM = $(element).find('.submit .input-review'); reviewDOM = $(element).find('.submit .input-review');
reviewDOM.on('click', showGrade);
tryAgainDOM = $(element).find('.submit .input-try-again'); tryAgainDOM = $(element).find('.submit .input-try-again');
tryAgainDOM.on('click', tryAgain); tryAgainDOM.on('click', tryAgain);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment