Commit 734843c3 by Vik Paruchuri

Confirm changed to alert

parent e142023e
......@@ -63,7 +63,7 @@ Write a persuasive essay to a newspaper reflecting your vies on censorship in li
else
@createXMLEditor()
@confirmTaskRubricModification()
@alertTaskRubricModification()
###
Creates the XML Editor and sets it as the current editor. If text is passed in,
......@@ -95,8 +95,8 @@ Write a persuasive essay to a newspaper reflecting your vies on censorship in li
# Hide markdown-specific toolbar buttons
$(@element.find('.editor-bar')).hide()
confirmTaskRubricModification: ->
return confirm("Before you edit, please note that if you alter the tasks block or the rubric block of this question after students have submitted responses, it may result in their responses and grades being deleted! Use caution when altering problems that have already been released to students.")
alertTaskRubricModification: ->
return alert("Before you edit, please note that if you alter the tasks block or the rubric block of this question after students have submitted responses, it may result in their responses and grades being deleted! Use caution when altering problems that have already been released to students.")
###
Have the user confirm the one-way conversion to XML.
Returns true if the user clicked OK, else false.
......
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