-
Notifications
You must be signed in to change notification settings - Fork 60
Problem Builder: Add instance-wide option to hide previous answers for MCQs #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,9 @@ function MentoringBlock(runtime, element) { | |
| var attemptsTemplate = _.template($('#xblock-attempts-template').html()); | ||
| var data = $('.mentoring', element).data(); | ||
| 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; | ||
| }); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In case you're wondering why you had to make this change: https://openedx.atlassian.net/browse/TNL-4161 I believe the earlier version is "better" but it doesn't work with the latest edx-platform master. The new version you have here should always work, so we may as well keep this change. |
||
| var step = data.step; | ||
|
|
||
| var mentoring = { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@itsjeyd Is this
_default_theme_configbeing used? Looks to me like withThemableXBlockMixinyou need to definedefault_theme_configas an attribute on the class instead.