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
e620e818
Commit
e620e818
authored
Apr 01, 2014
by
Alan Boudreault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strictly compare strings
parent
781bc91b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mentoring/public/js/questionnaire.js
+4
-4
No files found.
mentoring/public/js/questionnaire.js
View file @
e620e818
...
@@ -52,15 +52,15 @@ function MCQBlock(runtime, element) {
...
@@ -52,15 +52,15 @@ function MCQBlock(runtime, element) {
choiceTipsCloseDOM
;
choiceTipsCloseDOM
;
choiceResultDOM
.
removeClass
(
'incorrect icon-exclamation correct icon-ok'
);
choiceResultDOM
.
removeClass
(
'incorrect icon-exclamation correct icon-ok'
);
if
(
result
.
completed
&&
choiceInputDOM
.
val
()
==
result
.
submission
)
{
if
(
result
.
completed
&&
choiceInputDOM
.
val
()
==
=
result
.
submission
)
{
choiceResultDOM
.
addClass
(
'correct icon-ok'
);
choiceResultDOM
.
addClass
(
'correct icon-ok'
);
}
}
else
if
(
choiceInputDOM
.
val
()
==
result
.
submission
||
_
.
isNull
(
result
.
submission
))
{
else
if
(
choiceInputDOM
.
val
()
==
=
result
.
submission
||
_
.
isNull
(
result
.
submission
))
{
choiceResultDOM
.
addClass
(
'incorrect icon-exclamation'
);
choiceResultDOM
.
addClass
(
'incorrect icon-exclamation'
);
}
}
var
tips
=
_
.
find
(
result
.
tips
,
function
(
obj
)
{
var
tips
=
_
.
find
(
result
.
tips
,
function
(
obj
)
{
return
obj
.
choice
==
choiceInputDOM
.
val
();
return
obj
.
choice
==
=
choiceInputDOM
.
val
();
});
});
if
(
tips
)
{
if
(
tips
)
{
choiceTipsDOM
.
html
(
tips
.
tips
);
choiceTipsDOM
.
html
(
tips
.
tips
);
...
@@ -80,7 +80,7 @@ function MCQBlock(runtime, element) {
...
@@ -80,7 +80,7 @@ function MCQBlock(runtime, element) {
}
}
else
if
(
result
.
tips
)
{
else
if
(
result
.
tips
)
{
var
tips
=
_
.
find
(
result
.
tips
,
function
(
obj
)
{
var
tips
=
_
.
find
(
result
.
tips
,
function
(
obj
)
{
return
obj
.
choice
==
result
.
submission
;
return
obj
.
choice
==
=
result
.
submission
;
});
});
if
(
tips
)
{
if
(
tips
)
{
messageView
.
showMessage
(
tips
.
tips
);
messageView
.
showMessage
(
tips
.
tips
);
...
...
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