Skip to content

Commit

Permalink
perf: 优化 web sftp 的文字显示
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Mar 25, 2024
1 parent cebdf0b commit a4d7421
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion static/plugins/elfinder/elfinder.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -13149,7 +13149,7 @@ if (typeof elFinder === 'function' && elFinder.prototype.i18) {
'cmdrm' : 'Delete',
'cmdtrash' : 'Into trash', //from v2.1.24 added 29.4.2017
'cmdrestore' : 'Restore', //from v2.1.24 added 3.5.2017
'cmdsearch' : 'Find files',
'cmdsearch' : 'Find assets',
'cmdup' : 'Go to parent folder',
'cmdupload' : 'Upload files',
'cmdview' : 'View',
Expand Down
2 changes: 1 addition & 1 deletion static/plugins/elfinder/i18n/elfinder.zh_CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
'cmdrm' : '删除',
'cmdtrash' : '至回收站', //from v2.1.24 added 29.4.2017
'cmdrestore' : '恢复', //from v2.1.24 added 3.5.2017
'cmdsearch' : '查找文件',
'cmdsearch' : '查找资产',
'cmdup' : '转到上一级文件夹',
'cmdupload' : '上传文件',
'cmdview' : '查看',
Expand Down
3 changes: 2 additions & 1 deletion templates/elfinder/file_manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
let ws = new WebSocket(wsURL, ["JMS-KOKO"]);
let interval;
let wsId = '';
var tokenId = requireParams.get('token');

var lunaId, origin;
function handleEventFromLuna(evt) {
Expand Down Expand Up @@ -108,7 +109,7 @@
['rename'],
['view'],
];
if (targetId === '_') {
if (tokenId === null || tokenId === undefined || tokenId === "") {
toolbar.push(['search'])
}
var url = '/koko/elfinder/connector/'+ targetId + '/';
Expand Down

0 comments on commit a4d7421

Please sign in to comment.