Commit 3acc7441 authored by Y.H's avatar Y.H

Add the executable style in the file management module

增加文件管理模块中可执行文件的样式
parent 5a078ba6
......@@ -413,6 +413,8 @@ class Files {
id: _id,
fname: file['name'],
fsize: parseInt(file['size']),
// 如果是可执行文件(exe、dll..),则设置为红色字体
style: /.exe$|.dll$|.bat$|.sh$|.com$/.test(file['name']) ? 'color:red' : '',
data: [
self.fileIcon(file['name']),
antSword.noxss(file['name'].replace(/\/$/, '')),
......
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