2017-03-03 14:43:51 +08:00
|
|
|
<% if params[:index] %>
|
2016-01-20 16:03:28 +08:00
|
|
|
$("#exercises_<%= @exercise.id %>").html("<%= escape_javascript(render :partial => 'exercise',:locals => {:exercise => @exercise,:index =>@index}) %>");
|
2017-03-03 14:43:51 +08:00
|
|
|
notice_box("发布成功");
|
|
|
|
<% else %>
|
2017-03-07 10:17:14 +08:00
|
|
|
notice_box_redirect('<%= exercise_index_path(:course_id => @course.id) %>', '发布成功');
|
2017-03-03 14:43:51 +08:00
|
|
|
<% end %>
|