Commit 8b4df834 by Tim Krones

Hide review step by default.

parent 7a5e230a
...@@ -4,7 +4,7 @@ function MentoringWithStepsBlock(runtime, element) { ...@@ -4,7 +4,7 @@ function MentoringWithStepsBlock(runtime, element) {
function(c) { return c.element.className.indexOf('sb-step') > -1; } function(c) { return c.element.className.indexOf('sb-step') > -1; }
); );
var activeStep = $('.mentoring', element).data('active-step'); var activeStep = $('.mentoring', element).data('active-step');
var checkmark, submitDOM, nextDOM, tryAgainDOM, submitXHR; var reviewStep, checkmark, submitDOM, nextDOM, tryAgainDOM, submitXHR;
function isLastStep() { function isLastStep() {
return (activeStep === steps.length-1); return (activeStep === steps.length-1);
...@@ -124,6 +124,9 @@ function MentoringWithStepsBlock(runtime, element) { ...@@ -124,6 +124,9 @@ function MentoringWithStepsBlock(runtime, element) {
} }
function initXBlockView() { function initXBlockView() {
reviewStep = $('.sb-review-step', element);
reviewStep.hide();
checkmark = $('.assessment-checkmark', element); checkmark = $('.assessment-checkmark', element);
submitDOM = $(element).find('.submit .input-main'); submitDOM = $(element).find('.submit .input-main');
......
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