Commit 4f1fd229 by Waheed Ahmed

Flash of text appears when instructor goes to staff grading fixed.

ORA-249
parent 0c7e2036
...@@ -286,6 +286,7 @@ class @StaffGrading ...@@ -286,6 +286,7 @@ class @StaffGrading
get_problem_list: () -> get_problem_list: () ->
@list_view = true @list_view = true
@render_view(true)
@backend.post('get_problem_list', {}, @ajax_callback) @backend.post('get_problem_list', {}, @ajax_callback)
submit_and_get_next: () -> submit_and_get_next: () ->
...@@ -340,7 +341,7 @@ class @StaffGrading ...@@ -340,7 +341,7 @@ class @StaffGrading
@max_score = 0 @max_score = 0
@state = state_no_data @state = state_no_data
render_view: () -> render_view: (before_ajax) ->
# clear the problem list and breadcrumbs # clear the problem list and breadcrumbs
@problem_list.html(''' @problem_list.html('''
<tr> <tr>
...@@ -372,6 +373,9 @@ class @StaffGrading ...@@ -372,6 +373,9 @@ class @StaffGrading
@meta_info_wrapper.toggle(show_grading_elements) @meta_info_wrapper.toggle(show_grading_elements)
@action_button.hide() @action_button.hide()
if before_ajax
@scroll_to_top()
else
if @list_view if @list_view
@render_list() @render_list()
else else
......
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