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
e042ee23
Commit
e042ee23
authored
Nov 06, 2015
by
Adam
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10546 from edx/revert-disable-check-button-on-save
Revert disable check button on save
parents
a3ff4d50
33d9185d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
15 deletions
+0
-15
common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee
+0
-13
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+0
-2
No files found.
common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee
View file @
e042ee23
...
@@ -538,19 +538,6 @@ describe 'Problem', ->
...
@@ -538,19 +538,6 @@ describe 'Problem', ->
runs
->
runs
->
expect
(
window
.
SR
.
readElts
).
toHaveBeenCalled
()
expect
(
window
.
SR
.
readElts
).
toHaveBeenCalled
()
it
'disables check button while posting'
,
->
runs
->
spyOn
(
$
,
'postWithPrefix'
).
andCallFake
(
url
,
answers
,
callback
)
->
callback
(
success
:
'OK'
)
spyOn
@
problem
,
'enableCheckButton'
@
problem
.
save
()
expect
(
@
problem
.
enableCheckButton
).
toHaveBeenCalledWith
false
waitsFor
(
->
return
jQuery
.
active
==
0
),
"jQuery requests finished"
,
1000
runs
->
expect
(
@
problem
.
enableCheckButton
).
toHaveBeenCalledWith
true
describe
'refreshMath'
,
->
describe
'refreshMath'
,
->
beforeEach
->
beforeEach
->
@
problem
=
new
Problem
(
$
(
'.xblock-student_view'
))
@
problem
=
new
Problem
(
$
(
'.xblock-student_view'
))
...
...
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
e042ee23
...
@@ -412,13 +412,11 @@ class @Problem
...
@@ -412,13 +412,11 @@ class @Problem
@
save_internal
()
@
save_internal
()
save_internal
:
=>
save_internal
:
=>
@
enableCheckButton
false
Logger
.
log
'problem_save'
,
@
answers
Logger
.
log
'problem_save'
,
@
answers
$
.
postWithPrefix
"
#{
@
url
}
/problem_save"
,
@
answers
,
(
response
)
=>
$
.
postWithPrefix
"
#{
@
url
}
/problem_save"
,
@
answers
,
(
response
)
=>
saveMessage
=
response
.
msg
saveMessage
=
response
.
msg
@
gentle_alert
saveMessage
@
gentle_alert
saveMessage
@
updateProgress
response
@
updateProgress
response
@
enableCheckButton
true
refreshMath
:
(
event
,
element
)
=>
refreshMath
:
(
event
,
element
)
=>
element
=
event
.
target
unless
element
element
=
event
.
target
unless
element
...
...
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