From 4c840328cc4edc1f4eb45f60464b7937e97a5309 Mon Sep 17 00:00:00 2001 From: wb-czm552128 Date: Thu, 29 Aug 2019 15:24:00 +0800 Subject: [PATCH] =?UTF-8?q?FIX:=20=E5=85=B3=E9=97=AD=E9=A2=84=E8=A7=88PDF?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E3=80=81=E5=AD=90=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=90=9C=E7=B4=A2=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- README-CN.md | 12 ++++++------ all-releases.md | 1 + app/main/files/files.js | 4 +++- app/main/files/modals/preview/doc-modal.html | 18 +++++++++++++++++- app/main/modals/users.html | 2 +- node/i18n/en-US.js | 4 +++- node/i18n/ja-JP.js | 4 +++- node/i18n/zh-CN.js | 4 +++- package.json | 2 +- release-notes/1.9.5.en-US.md | 2 ++ release-notes/1.9.5.ja-JP.md | 2 ++ release-notes/1.9.5.md | 2 ++ release-notes/1.9.5.zh-CN.md | 2 ++ upgrade.json | 2 +- 15 files changed, 48 insertions(+), 15 deletions(-) create mode 100644 release-notes/1.9.5.en-US.md create mode 100644 release-notes/1.9.5.ja-JP.md create mode 100644 release-notes/1.9.5.md create mode 100644 release-notes/1.9.5.zh-CN.md diff --git a/Makefile b/Makefile index 59cbe3e3..64e003fb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -VERSION=1.9.4 +VERSION=1.9.5 NAME=oss-browser CUSTOM=./custom diff --git a/README-CN.md b/README-CN.md index c0f9e353..c69c9812 100644 --- a/README-CN.md +++ b/README-CN.md @@ -12,17 +12,17 @@ Windows7 above, Linux and Mac,不建议使用windows XP平台和windows Server ## 2. 客户端下载: -最新版本`1.9.4`,下载地址如下,解压即可使用。 +最新版本`1.9.5`,下载地址如下,解压即可使用。 -> [

Window x32 版下载

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-win32-ia32.zip) +> [

Window x32 版下载

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-win32-ia32.zip) -> [

Window x64 版下载

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-win32-x64.zip) +> [

Window x64 版下载

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-win32-x64.zip) -> [

Mac zip 版下载

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-darwin-x64.zip) +> [

Mac zip 版下载

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-darwin-x64.zip) -> [

Ubuntu x64 版

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-linux-x64.zip) +> [

Ubuntu x64 版

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-linux-x64.zip) -> [

Ubuntu x32 版

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-linux-ia32.zip) +> [

Ubuntu x32 版

](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-linux-ia32.zip) 其他版本暂不提供,可以自行 build。 diff --git a/all-releases.md b/all-releases.md index 2e49a366..48a70515 100644 --- a/all-releases.md +++ b/all-releases.md @@ -4,6 +4,7 @@ ||Windows ia32|Windows x64| Mac(zip) |Linux ia32|Linux x64|Release note| |-----|-----|-----|-----|--------|--------|---| +|1.9.5|[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-win32-ia32.zip) |[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-win32-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-darwin-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-linux-ia32.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.5/oss-browser-linux-x64.zip)|[1.9.5.md](release-notes/1.9.5.en-US.md)| |1.9.4|[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-win32-ia32.zip) |[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-win32-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-darwin-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-linux-ia32.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.4/oss-browser-linux-x64.zip)|[1.9.4.md](release-notes/1.9.4.en-US.md)| |1.9.3|[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.3/oss-browser-win32-ia32.zip) |[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.3/oss-browser-win32-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.3/oss-browser-darwin-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.3/oss-browser-linux-ia32.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.3/oss-browser-linux-x64.zip)|[1.9.3.md](release-notes/1.9.3.en-US.md)| |1.9.2|[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.2/oss-browser-win32-ia32.zip) |[Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.2/oss-browser-win32-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.2/oss-browser-darwin-x64.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.2/oss-browser-linux-ia32.zip) | [Download](https://oss-attachment.cn-hangzhou.oss.aliyun-inc.com/oss-browser/1.9.2/oss-browser-linux-x64.zip)|[1.9.2.md](release-notes/1.9.2.en-US.md)| diff --git a/app/main/files/files.js b/app/main/files/files.js index f4b4a790..93da6434 100644 --- a/app/main/files/files.js +++ b/app/main/files/files.js @@ -982,6 +982,8 @@ angular.module('web') // return; // } var keyword = $scope.keepMoveOptions.isCopy ? T('copy'): T('move'); + var keepmove = $scope.keepMoveOptions.currentInfo; + var current = $scope.currentInfo; if($scope.keepMoveOptions.items.length==1 && $scope.currentInfo.bucket==$scope.keepMoveOptions.currentInfo.bucket){ //1个支持重命名 @@ -1015,7 +1017,7 @@ angular.module('web') return; } - if ($scope.keepMoveOptions.currentInfo.key === $scope.currentInfo.key && keyword !== T('copy')) { + if (current.key === keepmove.key && keyword === T('move') && current.bucket === keepmove.bucket) { Toast.warn(T('forbidden')); } else { var msg = T('paste.message1', {name: $scope.keepMoveOptions.items[0].name, action: keyword}); diff --git a/app/main/files/modals/preview/doc-modal.html b/app/main/files/modals/preview/doc-modal.html index 955e4a36..1d0d270f 100644 --- a/app/main/files/modals/preview/doc-modal.html +++ b/app/main/files/modals/preview/doc-modal.html @@ -20,7 +20,7 @@