Getting rid of an alert. People don't like alerts.

This commit is contained in:
Arjun Singh
2012-08-29 03:15:30 -07:00
parent cbfc117e8b
commit ac65e47e21

View File

@@ -257,7 +257,11 @@ class @Problem
Logger.log 'problem_save', @answers
$.postWithPrefix "#{@url}/problem_save", @answers, (response) =>
if response.success
alert 'Saved'
if @el.find('.save_message').length
@el.find('.save_message').animate(opacity: 0, 500).animate(opacity: 1, 500)
else
saveMessage = "<div class='save_message'>Your answers have been saved but not graded. Hit 'Check' to grade them.</div>"
@el.find('.action').after(saveMessage)
@updateProgress response
refreshMath: (event, element) =>