diff --git a/app/views/stages/destroy.js.erb b/app/views/stages/destroy.js.erb index 6fb2a2c29..a111c8e88 100644 --- a/app/views/stages/destroy.js.erb +++ b/app/views/stages/destroy.js.erb @@ -1,5 +1,8 @@ <% if @status == 1 %> $("#stage_div_<%= @stage.id %>").remove(); +<% @subject.stages.each do |stage| %> + $("#stage_div_<%= stage.id %>").find(".subject_stage_index").html("<%= stage.position %>"); +<% end %> $("#subject_top").html("<%= j(render :partial => 'subjects/subject_top') %>"); <% else %> notice_box("删除失败"); diff --git a/app/views/subjects/show.html.erb b/app/views/subjects/show.html.erb index 2f3f3693a..c92282443 100644 --- a/app/views/subjects/show.html.erb +++ b/app/views/subjects/show.html.erb @@ -20,7 +20,7 @@