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
844fb033
Commit
844fb033
authored
Jan 04, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
javascript transitions okay, can integrate open ended response now
parent
69d8c4a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+6
-8
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
844fb033
...
@@ -64,10 +64,10 @@ class @CombinedOpenEnded
...
@@ -64,10 +64,10 @@ class @CombinedOpenEnded
@
next_problem_button
.
show
()
@
next_problem_button
.
show
()
else
else
@
next_problem_button
.
hide
()
@
next_problem_button
.
hide
()
if
@
allow_reset
#
if @allow_reset
@
reset_button
.
show
()
@
reset_button
.
show
()
else
#
else
@
reset_button
.
hide
()
#
@reset_button.hide()
find_assessment_elements
:
->
find_assessment_elements
:
->
...
@@ -132,8 +132,7 @@ class @CombinedOpenEnded
...
@@ -132,8 +132,7 @@ class @CombinedOpenEnded
reset
:
(
event
)
=>
reset
:
(
event
)
=>
event
.
preventDefault
()
event
.
preventDefault
()
@
errors_area
.
html
(
'Problem state got out of sync. Try reloading the page.'
)
if
@
child_state
==
'done'
if
@
state
==
'done'
$
.
postWithPrefix
"
#{
@
ajax_url
}
/reset"
,
{},
(
response
)
=>
$
.
postWithPrefix
"
#{
@
ajax_url
}
/reset"
,
{},
(
response
)
=>
if
response
.
success
if
response
.
success
@
answer_area
.
val
(
''
)
@
answer_area
.
val
(
''
)
...
@@ -151,7 +150,6 @@ class @CombinedOpenEnded
...
@@ -151,7 +150,6 @@ class @CombinedOpenEnded
next_problem
:
(
event
)
=>
next_problem
:
(
event
)
=>
event
.
preventDefault
()
event
.
preventDefault
()
@
errors_area
.
html
(
'Problem state got out of sync. Try reloading the page.'
)
if
@
child_state
==
'done'
if
@
child_state
==
'done'
$
.
postWithPrefix
"
#{
@
ajax_url
}
/next_problem"
,
{},
(
response
)
=>
$
.
postWithPrefix
"
#{
@
ajax_url
}
/next_problem"
,
{},
(
response
)
=>
if
response
.
success
if
response
.
success
...
@@ -161,7 +159,7 @@ class @CombinedOpenEnded
...
@@ -161,7 +159,7 @@ class @CombinedOpenEnded
@
message_wrapper
.
html
(
''
)
@
message_wrapper
.
html
(
''
)
@
child_state
=
'initial'
@
child_state
=
'initial'
@
rebind
()
@
rebind
()
@
reset
_button
.
hide
()
@
next_problem
_button
.
hide
()
location
.
reload
()
location
.
reload
()
else
else
@
errors_area
.
html
(
response
.
error
)
@
errors_area
.
html
(
response
.
error
)
...
...
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