Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
aa20261d
Commit
aa20261d
authored
Mar 26, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新文件管理双击操作
parent
5c875c95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
CHANGELOG.md
CHANGELOG.md
+3
-1
files.jsx
source/modules/filemanager/files.jsx
+3
-3
No files found.
CHANGELOG.md
View file @
aa20261d
...
...
@@ -4,6 +4,9 @@
## 2016/03
### /26
1.
文件管理双击:size < 100kb ? 编辑 : 下载
### /24
1.
文件管理双击文件进行编辑 //size < 100kb
...
...
@@ -37,7 +40,6 @@
# 待做事项
*
数据高级搜索功能
*
数据库配置编辑功能
*
数据发包代理功能
*
在线检测/下载/安装更新
*
虚拟终端复制粘贴tab补全
*
插件模块 //实时编写插件执行、UI以及各种操作API设计
...
...
source/modules/filemanager/files.jsx
View file @
aa20261d
...
...
@@ -346,14 +346,14 @@ class Files {
bmenu
.
hide
();
});
// 双击
::列出数据&&查看/编辑/下载文件(支持查看程序(png|jpg|gif..)则查看
//
支持编辑文件(php,js,txt..)则启动编辑器,如果是二进制或压缩等文件(exe,dll,zip,rar..)则下载)
// 双击
文件
//
:如果size < 100kb,则进行编辑,否则进行下载
grid
.
attachEvent
(
'onRowDblClicked'
,
(
id
,
lid
,
event
)
=>
{
const
fname
=
grid
.
getRowAttribute
(
id
,
'fname'
);
const
fsize
=
grid
.
getRowAttribute
(
id
,
'fsize'
);
if
(
!
fname
.
endsWith
(
'/'
))
{
// 双击编辑size < 100kb 文件
fsize
<=
100
*
1024
?
manager
.
editFile
(
fname
)
:
null
;
fsize
<=
100
*
1024
?
manager
.
editFile
(
fname
)
:
manager
.
downloadFile
(
fname
,
fsize
)
;
}
else
{
self
.
gotoPath
(
fname
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment