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
e97af7cf
Commit
e97af7cf
authored
Nov 01, 2012
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit javascript var name
parent
addde644
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common/lib/xmodule/xmodule/js/src/selfassessment/display.coffee
+2
-2
common/lib/xmodule/xmodule/self_assessment_module.py
+1
-1
No files found.
common/lib/xmodule/xmodule/js/src/selfassessment/display.coffee
View file @
e97af7cf
...
@@ -13,10 +13,10 @@ $(document).on('click', 'section.sa-wrapper input#show', ( ->
...
@@ -13,10 +13,10 @@ $(document).on('click', 'section.sa-wrapper input#show', ( ->
));
));
$
(
document
).
on
(
'click'
,
'section.sa-wrapper input#save'
,
(
->
$
(
document
).
on
(
'click'
,
'section.sa-wrapper input#save'
,
(
->
assessment
_correct
=
$
(
'section.sa-wrapper #assessment'
).
find
(
':selected'
).
text
()
assessment
=
$
(
'section.sa-wrapper #assessment'
).
find
(
':selected'
).
text
()
post_url
=
$
(
'section.sa-wrapper input#save'
).
attr
(
'url'
)
post_url
=
$
(
'section.sa-wrapper input#save'
).
attr
(
'url'
)
final_url
=
"
#{
post_url
}
/sa_save"
final_url
=
"
#{
post_url
}
/sa_save"
$
.
post
final_url
,
assessment
_correct
,
(
response
)
->
$
.
post
final_url
,
assessment
,
(
response
)
->
if
response
.
success
if
response
.
success
$
(
'section.sa-wrapper p#save_message'
).
append
(
response
.
message
)
$
(
'section.sa-wrapper p#save_message'
).
append
(
response
.
message
)
$
(
'section.sa-wrapper input#save'
).
remove
()
$
(
'section.sa-wrapper input#save'
).
remove
()
...
...
common/lib/xmodule/xmodule/self_assessment_module.py
View file @
e97af7cf
...
@@ -270,7 +270,7 @@ class SelfAssessmentModule(XModule):
...
@@ -270,7 +270,7 @@ class SelfAssessmentModule(XModule):
class
SelfAssessmentDescriptor
(
XmlDescriptor
,
EditingDescriptor
):
class
SelfAssessmentDescriptor
(
XmlDescriptor
,
EditingDescriptor
):
"""
"""
Module for
putting raw html in a course
Module for
adding self assessment questions to courses
"""
"""
mako_template
=
"widgets/html-edit.html"
mako_template
=
"widgets/html-edit.html"
module_class
=
SelfAssessmentModule
module_class
=
SelfAssessmentModule
...
...
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