From 3a1ab607fae4eea3dd3f6dad4f9f0f3f3740c219 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 14 Oct 2016 20:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E9=87=8D=E5=A4=8D=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/attachments/_upload_attachment_new_version.html.erb | 3 ++- app/views/attachments/upload_attachment_version.js.erb | 2 +- app/views/files/_attachment_history_popub.html.erb | 2 +- app/views/files/index.html.erb | 2 -- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/attachments/_upload_attachment_new_version.html.erb b/app/views/attachments/_upload_attachment_new_version.html.erb index 0e03bab47..a0c79626f 100644 --- a/app/views/attachments/_upload_attachment_new_version.html.erb +++ b/app/views/attachments/_upload_attachment_new_version.html.erb @@ -1,6 +1,7 @@
文件浏览 -

(未选择文件) 您可以上传小于50MB的文件

+

(未选择文件) 您可以上传小于50MB的文件

+
<%= file_field_tag 'attachments[dummy][file]', diff --git a/app/views/attachments/upload_attachment_version.js.erb b/app/views/attachments/upload_attachment_version.js.erb index eb5559563..1e5a2966a 100644 --- a/app/views/attachments/upload_attachment_version.js.erb +++ b/app/views/attachments/upload_attachment_version.js.erb @@ -1,7 +1,7 @@ <% if @flag %> hideModal(); alert('更新成功') - $(".re_search").submit(); +// $(".re_search").submit(); <%else%> $("#upload_file_count").html('(更新失败)') <%end %> \ No newline at end of file diff --git a/app/views/files/_attachment_history_popub.html.erb b/app/views/files/_attachment_history_popub.html.erb index 7aa553680..609ad8964 100644 --- a/app/views/files/_attachment_history_popub.html.erb +++ b/app/views/files/_attachment_history_popub.html.erb @@ -55,4 +55,4 @@ 取消 <%= submit_tag '确定', :onclick => 'upload_attachment_version(event);', :onfocus => 'this.blur()', :id => 'upload_files_submit_btn', :class => 'btn btn-blue fr mr5' %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index a278c585b..8f357214e 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -441,12 +441,10 @@ if($("#upload_form").find('.upload_filename').length > 1){ $("#upload_file_count").html('(只能上传一个更新文件)') event.preventDefault(); - return false; }else if($("#upload_form").find('.upload_filename').length == 0){ $("#upload_file_count").html('(请上传一个更新文件)') event.preventDefault(); - return false; }else{ $("#upload_form").submit();