Show error when no score selected
This commit is contained in:
committed by
Vik Paruchuri
parent
de7d6f184a
commit
c87d0f11d6
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user