socialforge/app/views/projects/finishcourse.js.erb

9 lines
449 B
Plaintext
Raw Normal View History

<% if @save_flag %>
<% if Rails.env.development? %>
console.debug('课程修改成功:结束时间改为<%=Course.find_by_extra(@project.identifier).try(:endup_time)%>');
<% end %>
2014-04-21 08:39:49 +08:00
$('#finish_course_<%=@project.id%>').replaceWith("<%= j(render partial: 'courses/set_course_time', :locals => {:project => @project} )%>")
<% else %>
2014-05-06 09:16:48 +08:00
alert('权限不足,设置失败,请在论坛提交问题,等待管理员处理。');
<% end %>