From 943258aebe37afff36f04a7191129c7bcdb1ff87 Mon Sep 17 00:00:00 2001 From: z9hang Date: Tue, 17 Mar 2015 17:29:35 +0800 Subject: [PATCH 1/6] =?UTF-8?q?#2025=20=E9=A1=B9=E7=9B=AE--=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E5=BA=93=EF=BC=9A=E4=B8=8A=E4=BC=A0=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=88=86=E7=B1=BB=E8=B5=84=E6=BA=90=E4=B8=BA?= =?UTF-8?q?=E2=80=9C=E8=AF=BE=E4=BB=B6=E2=80=9D=E6=88=96=E2=80=9C=E7=A0=94?= =?UTF-8?q?=E7=A9=B6=E6=8A=A5=E5=91=8A=E2=80=9D=EF=BC=8C=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=90=8E=EF=BC=8C=E9=83=BD=E6=98=AF=E6=BA=90?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/attachments.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 8ea71909b..8fbaa5981 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -135,8 +135,11 @@ function uploadBlob(blob, uploadUrl, attachmentId, options) { loadstartEventHandler: $.noop, progressEventHandler: $.noop }, options); - - uploadUrl = uploadUrl + '?attachment_id=' + attachmentId; + if(uploadUrl.indexOf('?') > 0){ + uploadUrl = uploadUrl + '&attachment_id=' + attachmentId; + }else{ + uploadUrl = uploadUrl + '?attachment_id=' + attachmentId; + } if (blob instanceof window.File) { uploadUrl += '&filename=' + encodeURIComponent(blob.name); } From cfaf788e3718434542c408e2bc6018cab0111601 Mon Sep 17 00:00:00 2001 From: whimlex Date: Tue, 17 Mar 2015 18:04:35 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=96=B0=E7=89=88=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=88=90=E5=91=98=EF=BC=8C=E5=85=B3=E6=B3=A8=E8=80=85=EF=BC=8C?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=BA=93=E5=9B=BD=E9=99=85=E5=8C=96=EF=BC=9B?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BD=E9=99=85=E5=8C=96=E7=BC=BA=E5=A4=B1?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/files/_project_file.html.erb | 6 +- app/views/projects/_member_list.html.erb | 2 +- app/views/projects/watcherlist.html.erb | 2 +- app/views/users/_my_joinedcourse.html.erb | 4 +- config/locales/commons/en.yml | 5 +- config/locales/commons/zh.yml | 16 +++-- config/locales/en.yml | 16 +---- config/locales/projects/en.yml | 55 ++++++++++++++- config/locales/projects/zh.yml | 82 ++++++++++++++++++++++- config/locales/zh.yml | 28 ++------ 10 files changed, 158 insertions(+), 58 deletions(-) diff --git a/app/views/files/_project_file.html.erb b/app/views/files/_project_file.html.erb index aa597f3f2..b4d849cd6 100644 --- a/app/views/files/_project_file.html.erb +++ b/app/views/files/_project_file.html.erb @@ -1,7 +1,7 @@ <% attachmenttypes = @project.attachmenttypes %> <% sufixtypes = @project.contenttypes %>
-

资源共享区

+

<%= l(:lable_file_sharingarea) %>

@@ -16,12 +16,12 @@