下载附件给出使用winrar解压的提示
This commit is contained in:
parent
218246239b
commit
0f92a2e3cb
|
@ -55,11 +55,20 @@
|
|||
<% if @is_teacher%>
|
||||
<div class="fr">
|
||||
<% if @homework.student_works.empty?%>
|
||||
<%= link_to "附件", "javascript:void(0)", class: "down_btn fr", :onclick => "alert('没有学生提交作业,无法下载附件')" %>
|
||||
<%= link_to "附件", "javascript:void(0)", class: "down_btn fr zip_download_alert", :onclick => "alert('没有学生提交作业,无法下载附件')" %>
|
||||
<% else%>
|
||||
<%= link_to "附件", zipdown_assort_path(obj_class: @homework.class, obj_id: @homework, format: :json),
|
||||
remote: true, class: "down_btn fr", :id => "download_homework_attachments" %>
|
||||
remote: true, class: "down_btn fr zip_download_alert", :id => "download_homework_attachments" %>
|
||||
<% end%>
|
||||
<div class="info_ni">
|
||||
使用
|
||||
<span class="c_red">winzip</span>
|
||||
工具进行解压可能会导致
|
||||
<span class="c_red">下载文件乱码</span>
|
||||
,建议您使用
|
||||
<span class="c_red">winrar</span>
|
||||
工具进行解压
|
||||
</div>
|
||||
|
||||
<%= link_to l(:label_list), student_work_index_path(:homework => @homework.id,:order => @order, :sort => @b_sort, :name => @name, :format => 'xls'),:class=>'down_btn fr'%>
|
||||
<span class="mt3 fr " style="color:#136b3b;">导出全部:</span>
|
||||
|
|
|
@ -797,6 +797,18 @@ $(function(){
|
|||
});
|
||||
|
||||
$("#about_project label").eq(1).remove();
|
||||
|
||||
//附件下载提示
|
||||
$(".zip_download_alert").bind("mouseover",function(e){
|
||||
//alert($(this).html());
|
||||
$(this).next("div").show();
|
||||
$(this).next("div").css("top",e.pageY);
|
||||
$(this).next("div").css("left",e.pageX);
|
||||
});
|
||||
$(".zip_download_alert").bind("mouseout",function(e){
|
||||
//alert($(this).html());
|
||||
$(this).next("div").hide();
|
||||
});
|
||||
});
|
||||
|
||||
//匿评弹框取消按钮
|
||||
|
|
Loading…
Reference in New Issue