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

8 lines
448 B
Plaintext
Raw Normal View History

2014-06-05 10:33:32 +08:00
<% if @save_flag %>
2015-07-09 15:27:49 +08:00
$('#finish_course_<%=@course.id%>').replaceWith("<%= escape_javascript(set_course_time(@course_prefs))%>");
var html = "<%= escape_javascript( render( :partial => 'users/course_form', :locals => {:item => @course_prefs} ) )%>";
$('#nh_course_<%=@course.id%>').replaceWith(html);
2015-03-26 18:12:24 +08:00
// alert("关闭成功");
2014-06-05 10:33:32 +08:00
<% else %>
2015-07-09 15:27:49 +08:00
alert('权限不足,设置失败,请在论坛提交问题,等待管理员处理。');
<% end %>