2014-06-05 10:33:32 +08:00
|
|
|
<% if @save_flag %>
|
2014-10-13 14:52:07 +08:00
|
|
|
<% if Rails.env.development? %>
|
|
|
|
console.debug('课程修改成功:结束时间改为<%=Course.find_by_extra(@course.extra).try(:endup_time)%>');
|
|
|
|
<% end %>
|
|
|
|
$('#content-title-top-div').html("<%= j(render partial: 'users/my_course_ex', :locals => {:memberships => @memberships,:user=>@user,
|
|
|
|
:memberships_doing=>@memberships_doing,:memberships_done=>@memberships_done} )%>");
|
|
|
|
$('#finish_course_<%=@course.id%>').replaceWith("<%= j(render partial: 'courses/set_course_time', :locals => {:course => @course} )%>");
|
2014-06-05 10:33:32 +08:00
|
|
|
<% else %>
|
2014-10-13 14:52:07 +08:00
|
|
|
alert('权限不足,设置失败,请在论坛提交问题,等待管理员处理。');
|
2014-06-05 10:33:32 +08:00
|
|
|
<% end %>
|
2014-06-27 10:50:23 +08:00
|
|
|
|
|
|
|
|