Commit 4907886c by Vik Paruchuri

edit javascript var name

parent 4511cde0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment