Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
0fc3ad5c
Commit
0fc3ad5c
authored
Apr 16, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Checkmark not shown if answer name is numeric
parent
83ae2b7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
problem_builder/public/js/mentoring.js
+1
-1
problem_builder/public/js/mentoring_assessment_view.js
+2
-2
problem_builder/public/js/mentoring_standard_view.js
+2
-2
No files found.
problem_builder/public/js/mentoring.js
View file @
0fc3ad5c
...
...
@@ -106,7 +106,7 @@ function MentoringBlock(runtime, element) {
function
getChildByName
(
name
)
{
for
(
var
i
=
0
;
i
<
children
.
length
;
i
++
)
{
var
child
=
children
[
i
];
if
(
child
&&
child
.
name
===
name
)
{
if
(
child
&&
child
.
name
.
toString
()
===
name
)
{
return
child
;
}
}
...
...
problem_builder/public/js/mentoring_assessment_view.js
View file @
0fc3ad5c
...
...
@@ -196,7 +196,7 @@ function MentoringAssessmentView(runtime, element, mentoring) {
if
(
fire_event
)
{
mentoring
.
publish_event
({
event_type
:
'xblock.problem_builder.assessment.shown'
,
exercise_id
:
child
.
name
exercise_id
:
child
.
name
.
toString
()
});
}
}
...
...
@@ -291,7 +291,7 @@ function MentoringAssessmentView(runtime, element, mentoring) {
var
data
=
{};
var
child
=
mentoring
.
steps
[
active_child
];
if
(
child
&&
child
.
name
!==
undefined
)
{
data
[
child
.
name
]
=
callIfExists
(
child
,
handler_name
);
data
[
child
.
name
.
toString
()
]
=
callIfExists
(
child
,
handler_name
);
}
var
handlerUrl
=
runtime
.
handlerUrl
(
element
,
handler_name
);
if
(
submitXHR
)
{
...
...
problem_builder/public/js/mentoring_standard_view.js
View file @
0fc3ad5c
...
...
@@ -38,7 +38,7 @@ function MentoringStandardView(runtime, element, mentoring) {
for
(
var
i
=
0
;
i
<
children
.
length
;
i
++
)
{
var
child
=
children
[
i
];
if
(
child
&&
child
.
name
!==
undefined
&&
typeof
(
child
[
handler_name
])
!==
"undefined"
)
{
data
[
child
.
name
]
=
child
[
handler_name
]();
data
[
child
.
name
.
toString
()
]
=
child
[
handler_name
]();
}
}
var
handlerUrl
=
runtime
.
handlerUrl
(
element
,
handler_name
);
...
...
@@ -53,7 +53,7 @@ function MentoringStandardView(runtime, element, mentoring) {
}
function
submit
()
{
calculate_results
(
'submit'
)
calculate_results
(
'submit'
)
;
}
function
clearResults
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment