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();