Confirm changed to alert

This commit is contained in:
Vik Paruchuri
2013-08-23 11:42:30 -04:00
parent e142023eed
commit 734843c377

View File

@@ -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.