Commit 12c1a8cc authored by antoor's avatar antoor

增加文件管理模块双击文件进行编辑功能呢个

parent 58adad37
......@@ -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设计
* 扩展模块 //用于扩展一些高级的功能,懒人必备
* 代码重构
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment