Commit c87d0f11 by Diana Huang Committed by Vik Paruchuri

Show error when no score selected

parent de7d6f18
......@@ -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 =
......
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