IE浏览器提交作品给出提示
This commit is contained in:
parent
203d98133a
commit
633c314a67
|
@ -48,6 +48,7 @@
|
|||
<div class="cl"></div>
|
||||
<p id="hint_message"></p>
|
||||
<div class="cl"></div>
|
||||
<div class="_notice_box text_c none mt5" style="height: 20px; width: 397px; padding: 4px 4px; line-height: 20px;" id="_notice_box">注意:暂不支持IE浏览器的上传,请更换浏览器</div>
|
||||
<div style="margin-top: 10px">
|
||||
<a href="javascript:void(0);" id="upload_files_cancle_btn" class="fl sy_btn_grey mr10" onclick="closeModal();">取消</a>
|
||||
<a href="javascript:void(0);" id="upload_files_submit_btn" class="fl sy_btn_blue" onclick="submit_revise_files();">确定</a>
|
||||
|
@ -55,4 +56,14 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
if(is_IE()){
|
||||
$("#_notice_box").show();
|
||||
$("#uploadReviseBox").addClass('disable_link');
|
||||
$("#uploadReviseBox").attr("title","无法上传");
|
||||
$("#choose_revise_attach").attr("onclick","return false;");
|
||||
}
|
||||
});
|
||||
</script>
|
|
@ -5,6 +5,16 @@
|
|||
<% end %>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
if(is_IE()){
|
||||
$("#_notice_box").show();
|
||||
$("#uploadReviseBox").addClass('disable_link');
|
||||
$("#upload_file_local").attr("title","无法上传");
|
||||
$("#upload_file_local").attr("onclick","return false;");
|
||||
$("#resource_repo_upload").attr("title","无法上传");
|
||||
$("#resource_repo_upload").attr("href","javascript:void(0)");
|
||||
}
|
||||
});
|
||||
<%if @homework.anonymous_comment == 0 && @homework.homework_detail_manual.comment_status != 1%>
|
||||
$(function(){
|
||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'student_work/new_student_work_alert') %>');
|
||||
|
@ -203,8 +213,9 @@
|
|||
</div>
|
||||
<div class="cl"></div>
|
||||
|
||||
<div class="HomeWork" id="users_setting">
|
||||
<div class="_notice_box text_c none mb10" style="height: 20px; padding: 4px 4px; line-height: 20px;" id="_notice_box">注意:暂不支持IE浏览器的上传,请更换浏览器</div>
|
||||
|
||||
<div class="HomeWork" id="users_setting">
|
||||
<div class="HomeWorkBox">
|
||||
<div class="">
|
||||
<div class="homepagePostTitle fl m_w530 hidden">
|
||||
|
|
|
@ -69,8 +69,8 @@
|
|||
|
||||
<div class="mt5 fl">
|
||||
<!-- , user_import_resource_user_path(User.current.id,:homework_id=>container.id) -->
|
||||
<a href="javascript:void(0);" class="AnnexBtn fl mt3 mr15" onclick="$('#_file').click();" title="请选择文件上传">上传附件</a>
|
||||
<%= link_to "资源库", user_ref_resource_search_user_path(User.current.id, :homework_id => container.id), :class => "FilesBtn fl mt3 mr15", :title => "请从资源库中选择文件作为作业的附件", :remote => true %>
|
||||
<a href="javascript:void(0);" id="upload_file_local" class="AnnexBtn fl mt3 mr15" onclick="$('#_file').click();" title="请选择文件上传">上传附件</a>
|
||||
<%= link_to "资源库", user_ref_resource_search_user_path(User.current.id, :homework_id => container.id), :class => "FilesBtn fl mt3 mr15", :title => "请从资源库中选择文件作为作业的附件", :remote => true, :id => "resource_repo_upload" %>
|
||||
</div>
|
||||
|
||||
<% content_for :header_tags do %>
|
||||
|
|
|
@ -2201,3 +2201,12 @@ function archive_course(id, type, source){
|
|||
}
|
||||
}
|
||||
|
||||
//判断是不是IE浏览器
|
||||
function is_IE(){
|
||||
if(navigator.userAgent.toLowerCase().indexOf('msie') > -1){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue