文件上传完成后给出提醒

This commit is contained in:
huang 2015-07-02 14:32:06 +08:00
parent f9cecbee5c
commit faf019b326
1 changed files with 5 additions and 1 deletions

View File

@ -24,6 +24,10 @@ $('#upload_file_div').slideToggle('slow');
<% if @project %>
closeModal();
$("#resource_list").html('<%= j(render partial: "project_file_new" ,locals: {project: @project}) %>');
// 添加文件上传成功提示,
var div = $('<div id="addBox">文件上传成功!</div>');
$("#course_list").prepend(div);
setTimeout( function(){div.remove();},30000)
<%elsif @course%>
closeModal();
$("#resource_list").html('<%= j(render partial: "course_file" ,locals: {course: @course}) %>');