|
|
@ -23,26 +23,35 @@ $("#upload_file_count").text("未上传文件");
|
|
|
|
$('#upload_file_div').slideToggle('slow');
|
|
|
|
$('#upload_file_div').slideToggle('slow');
|
|
|
|
<% if @project %>
|
|
|
|
<% if @project %>
|
|
|
|
hideModal();
|
|
|
|
hideModal();
|
|
|
|
$("#resource_list").html('<%= j(render partial: "project_file_new" ,locals: {project: @project}) %>');
|
|
|
|
<%if @in_project_toolbar%>
|
|
|
|
$("#project_files_count_info").html("<%= @all_attachments.count%>");
|
|
|
|
window.location.href = '<%= project_files_path(@project)%>'
|
|
|
|
$("#project_files_count_nav").html("(<%= @all_attachments.count%>)")
|
|
|
|
<%else%>
|
|
|
|
// 添加文件上传成功提示
|
|
|
|
|
|
|
|
<% unless params[:attachments].nil? %>
|
|
|
|
$("#resource_list").html('<%= j(render partial: "project_file_new" ,locals: {project: @project}) %>');
|
|
|
|
var div = $('<div id="addBox" class="flash notice">文件上传成功!</div>');
|
|
|
|
$("#project_files_count_info").html("<%= @all_attachments.count%>");
|
|
|
|
$("#course_list").prepend(div);
|
|
|
|
$("#project_files_count_nav").html("(<%= @all_attachments.count%>)")
|
|
|
|
setTimeout( function(){div.remove();},3000)
|
|
|
|
// 添加文件上传成功提示
|
|
|
|
|
|
|
|
<% unless params[:attachments].nil? %>
|
|
|
|
|
|
|
|
var div = $('<div id="addBox" class="flash notice">文件上传成功!</div>');
|
|
|
|
|
|
|
|
$("#course_list").prepend(div);
|
|
|
|
|
|
|
|
setTimeout( function(){div.remove();},3000)
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<%elsif @course%>
|
|
|
|
<%elsif @course%>
|
|
|
|
closeModal();
|
|
|
|
hideModal();
|
|
|
|
$("#resource_list").html('<%= j(render partial: "course_file" ,locals: {course: @course}) %>');
|
|
|
|
<%if @in_course_toolbar %>
|
|
|
|
$("#courses_files_count_info").html("<%= @all_attachments.count%>");
|
|
|
|
window.location.href='<%= course_files_path(@course)%>'
|
|
|
|
$("#courses_files_count_nav").html("(<%= @all_attachments.count%>)")
|
|
|
|
<%else%>
|
|
|
|
// 添加文件上传成功提示,
|
|
|
|
$("#resource_list").html('<%= j(render partial: "course_file" ,locals: {course: @course}) %>');
|
|
|
|
<% unless params[:attachments].nil? %>
|
|
|
|
$("#courses_files_count_info").html("<%= @all_attachments.count%>");
|
|
|
|
var div = $('<div id="addBox" class="flash notice">文件上传成功!</div>');
|
|
|
|
$("#courses_files_count_nav").html("(<%= @all_attachments.count%>)")
|
|
|
|
$("#course_list").prepend(div);
|
|
|
|
// 添加文件上传成功提示,
|
|
|
|
setTimeout( function(){div.remove();},3000)
|
|
|
|
<% unless params[:attachments].nil? %>
|
|
|
|
<% end %>
|
|
|
|
var div = $('<div id="addBox" class="flash notice">文件上传成功!</div>');
|
|
|
|
|
|
|
|
$("#course_list").prepend(div);
|
|
|
|
|
|
|
|
setTimeout( function(){div.remove();},3000)
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%end%>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
$(document).ready(img_thumbnails);
|
|
|
|
$(document).ready(img_thumbnails);
|
|
|
|