Commit 5e5d897c by Tim Krones

Fix: Make sure collecting "step" children of Problem Builder (Mentoring)

blocks works in both Apros and the LMS.
parent f16b9ec5
...@@ -8,7 +8,9 @@ function MentoringBlock(runtime, element) { ...@@ -8,7 +8,9 @@ function MentoringBlock(runtime, element) {
var attemptsTemplate = _.template($('#xblock-attempts-template').html()); var attemptsTemplate = _.template($('#xblock-attempts-template').html());
var data = $('.mentoring', element).data(); var data = $('.mentoring', element).data();
var children = runtime.children(element); var children = runtime.children(element);
var steps = runtime.children(element).filter(function(c) { return c.element.className.indexOf('assessment_step_view') > -1; }); var steps = runtime.children(element).filter(function(c) {
return $(c.element).attr("class").indexOf('assessment_step_view') > -1;
});
var step = data.step; var step = data.step;
var mentoring = { var mentoring = {
......
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