edit javascript var name
This commit is contained in:
@@ -13,10 +13,10 @@ $(document).on('click', 'section.sa-wrapper input#show', ( ->
|
||||
));
|
||||
|
||||
$(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')
|
||||
final_url="#{post_url}/sa_save"
|
||||
$.post final_url, assessment_correct, (response) ->
|
||||
$.post final_url, assessment, (response) ->
|
||||
if response.success
|
||||
$('section.sa-wrapper p#save_message').append(response.message)
|
||||
$('section.sa-wrapper input#save').remove()
|
||||
|
||||
@@ -270,7 +270,7 @@ class SelfAssessmentModule(XModule):
|
||||
|
||||
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"
|
||||
module_class = SelfAssessmentModule
|
||||
|
||||
Reference in New Issue
Block a user