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
3ca2523a
Commit
3ca2523a
authored
Mar 17, 2016
by
Adam
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75 from edx/hotfix/2016-03-17
Revert "Make Capa problems do initial load without AJAX."
parents
508487bb
b8b7327e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
common/lib/xmodule/xmodule/capa_base.py
+0
-1
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+1
-2
lms/templates/problem_ajax.html
+1
-1
No files found.
common/lib/xmodule/xmodule/capa_base.py
View file @
3ca2523a
...
...
@@ -399,7 +399,6 @@ class CapaMixin(CapaFields):
'ajax_url'
:
self
.
runtime
.
ajax_url
,
'progress_status'
:
Progress
.
to_js_status_str
(
progress
),
'progress_detail'
:
Progress
.
to_js_detail_str
(
progress
),
'content'
:
self
.
get_problem_html
(
encapsulate
=
False
)
})
def
check_button_name
(
self
):
...
...
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
3ca2523a
...
...
@@ -5,7 +5,6 @@ class @Problem
@
id
=
@
el
.
data
(
'problem-id'
)
@
element_id
=
@
el
.
attr
(
'id'
)
@
url
=
@
el
.
data
(
'url'
)
@
content
=
@
el
.
data
(
'content'
)
# has_timed_out and has_response are used to ensure that are used to
# ensure that we wait a minimum of ~ 1s before transitioning the check
...
...
@@ -13,7 +12,7 @@ class @Problem
@
has_timed_out
=
false
@
has_response
=
false
@
render
(
@
content
)
@
render
()
$
:
(
selector
)
->
$
(
selector
,
@
el
)
...
...
lms/templates/problem_ajax.html
View file @
3ca2523a
<div
id=
"problem_${element_id}"
class=
"problems-wrapper"
data-problem-id=
"${id}"
data-url=
"${ajax_url}"
data-progress_status=
"${progress_status}"
data-progress_detail=
"${progress_detail}"
data-content=
"${content | h}"
></div>
<div
id=
"problem_${element_id}"
class=
"problems-wrapper"
data-problem-id=
"${id}"
data-url=
"${ajax_url}"
data-progress_status=
"${progress_status}"
data-progress_detail=
"${progress_detail}"
></div>
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