Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
54eaabce
Commit
54eaabce
authored
Jan 10, 2014
by
Anton Stupak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2107 from edx/anton/fix-image-response
Fix show answer button for ImageResponse.
parents
9363dba5
95a88823
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee
+9
-3
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+2
-2
No files found.
common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee
View file @
54eaabce
...
...
@@ -308,11 +308,17 @@ describe 'Problem', ->
states
=
[
{
desc
:
'rectangle is drawn correctly'
,
data
:
{
'rectangle'
:
'(10,10)-(30,30)'
}
data
:
{
'rectangle'
:
'(10,10)-(30,30)'
,
'regions'
:
null
}
},
{
desc
:
'region is drawn correctly'
,
data
:
{
'regions'
:
'[[10,10],[30,30],[70,30],[20,30]]'
}
data
:
{
'rectangle'
:
null
,
'regions'
:
'[[10,10],[30,30],[70,30],[20,30]]'
}
},
{
desc
:
'mixed shapes are drawn correctly'
,
...
...
@@ -387,7 +393,7 @@ describe 'Problem', ->
ctx
.
lineWidth
=
"2"
;
$
.
each
coords
,
(
key
,
value
)
=>
types
[
key
](
value
)
if
types
[
key
]
?
types
[
key
](
value
)
if
types
[
key
]
?
and
value
return
canvas
...
...
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
54eaabce
...
...
@@ -260,7 +260,7 @@ class @Problem
check
:
=>
if
not
@
check_save_waitfor
(
@
check_internal
)
@
check_internal
()
@
check_internal
()
check_internal
:
=>
Logger
.
log
'problem_check'
,
@
answers
...
...
@@ -570,7 +570,7 @@ class @Problem
$
.
each
answers
,
(
key
,
answer
)
=>
$
.
each
answer
,
(
key
,
value
)
=>
types
[
key
](
value
)
if
types
[
key
]
?
types
[
key
](
value
)
if
types
[
key
]
?
and
value
container
.
html
(
canvas
)
...
...
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