Show error when no score selected

This commit is contained in:
Diana Huang
2012-12-14 10:48:22 -05:00
committed by Vik Paruchuri
parent de7d6f184a
commit c87d0f11d6

View File

@@ -209,8 +209,9 @@ class @Problem
fd.append('feedback', feedback)
fd.append('submission_id', submission_id)
fd.append('grader_id', grader_id)
if(score && parseInt(score) != NaN)
fd.append('score', parseInt(score))
if(!score || parseInt(score) == NaN)
@gentle_alert "You need to pick a rating to submit."
return
settings =