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
f6b2cabd
Commit
f6b2cabd
authored
Aug 10, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Position change in sequence kills polling thread, rather than new Problem creation
parent
64eba433
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+0
-6
common/lib/xmodule/xmodule/js/src/sequence/display.coffee
+7
-0
No files found.
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
f6b2cabd
...
...
@@ -4,12 +4,6 @@ class @Problem
@
id
=
@
el
.
data
(
'problem-id'
)
@
element_id
=
@
el
.
attr
(
'id'
)
@
url
=
@
el
.
data
(
'url'
)
# Destroy any existing polling threads on Problem change
if
window
.
queuePollerID
window
.
clearTimeout
(
window
.
queuePollerID
)
delete
window
.
queuePollerID
@
render
()
$
:
(
selector
)
->
...
...
common/lib/xmodule/xmodule/js/src/sequence/display.coffee
View file @
f6b2cabd
...
...
@@ -91,6 +91,13 @@ class @Sequence
event
.
preventDefault
()
new_position
=
$
(
event
.
target
).
data
(
'element'
)
Logger
.
log
"seq_goto"
,
old
:
@
position
,
new
:
new_position
,
id
:
@
id
# On Sequence chage, destroy any existing polling thread
# for queued submissions, see ../capa/display.coffee
if
window
.
queuePollerID
window
.
clearTimeout
(
window
.
queuePollerID
)
delete
window
.
queuePollerID
@
render
new_position
next
:
(
event
)
=>
...
...
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