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
12c1a8cc
Commit
12c1a8cc
authored
Mar 24, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加文件管理模块双击文件进行编辑功能呢个
parent
58adad37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
CHANGELOG.md
CHANGELOG.md
+4
-2
files.jsx
source/modules/filemanager/files.jsx
+3
-1
No files found.
CHANGELOG.md
View file @
12c1a8cc
...
...
@@ -4,7 +4,10 @@
## 2016/03
### /23
### /24
1.
文件管理双击文件进行编辑 //size < 100kb
### /23 (v1.1.0)
1.
优化数据处理截断算法
### /22
...
...
@@ -37,7 +40,6 @@
*
数据发包代理功能
*
在线检测/下载/安装更新
*
虚拟终端复制粘贴tab补全
*
文件管理双击文件进行编辑 //size < 1024kb
*
插件模块 //实时编写插件执行、UI以及各种操作API设计
*
扩展模块 //用于扩展一些高级的功能,懒人必备
*
代码重构
...
...
source/modules/filemanager/files.jsx
View file @
12c1a8cc
...
...
@@ -350,8 +350,10 @@ class Files {
//支持编辑文件(php,js,txt..)则启动编辑器,如果是二进制或压缩等文件(exe,dll,zip,rar..)则下载)
grid
.
attachEvent
(
'onRowDblClicked'
,
(
id
,
lid
,
event
)
=>
{
const
fname
=
grid
.
getRowAttribute
(
id
,
'fname'
);
const
fsize
=
grid
.
getRowAttribute
(
id
,
'fsize'
);
if
(
!
fname
.
endsWith
(
'/'
))
{
// grid.callEvent('onRightClick', [id, lid, event]);
// 双击编辑size < 100kb 文件
fsize
<=
100
*
1024
?
manager
.
editFile
(
fname
)
:
null
;
}
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