From 4f359ea59412c7f1aba2b25912075dbcc8f61779 Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Mon, 19 Nov 2012 13:38:21 -0500 Subject: [PATCH] pass through message when no more submissions. --- lms/static/coffee/src/staff_grading/staff_grading.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/static/coffee/src/staff_grading/staff_grading.coffee b/lms/static/coffee/src/staff_grading/staff_grading.coffee index b252e7a365..e410a3c41d 100644 --- a/lms/static/coffee/src/staff_grading/staff_grading.coffee +++ b/lms/static/coffee/src/staff_grading/staff_grading.coffee @@ -112,7 +112,7 @@ class StaffGrading if response.submission @data_loaded(response.submission, response.rubric) else - @no_more() + @no_more(response.message) else @error(response.error) @@ -137,10 +137,10 @@ class StaffGrading @score = null @state = state_grading - no_more: () -> + no_more: (message) -> @submission = null @rubric = null - @message = 'Nothing to grade' + @message = message @state = state_no_data render_view: () ->