From faf019b326d9bc4a4da6abb4b91fe6a4b525f0d9 Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 2 Jul 2015 14:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E5=90=8E=E7=BB=99=E5=87=BA=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/files/create.js.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/files/create.js.erb b/app/views/files/create.js.erb index 87bf5b864..2d99941dd 100644 --- a/app/views/files/create.js.erb +++ b/app/views/files/create.js.erb @@ -21,9 +21,13 @@ $("#attachments_fields").children().remove(); $("#upload_file_count").text("未上传文件"); $('#upload_file_div').slideToggle('slow'); - <% if @project%> + <% if @project %> closeModal(); $("#resource_list").html('<%= j(render partial: "project_file_new" ,locals: {project: @project}) %>'); +// 添加文件上传成功提示, + var div = $('
文件上传成功!
'); + $("#course_list").prepend(div); + setTimeout( function(){div.remove();},30000) <%elsif @course%> closeModal(); $("#resource_list").html('<%= j(render partial: "course_file" ,locals: {course: @course}) %>');