This commit is contained in:
parent
7d24c3adfa
commit
5bf5c51980
|
@ -295,7 +295,7 @@ func getIconSkin(filenameExtension string) string {
|
|||
return "ico-ztree-pro "
|
||||
case ".md":
|
||||
return "ico-ztree-md "
|
||||
case ".js", "json":
|
||||
case ".js", ".json":
|
||||
return "ico-ztree-js "
|
||||
case ".xml":
|
||||
return "ico-ztree-xml "
|
||||
|
|
|
@ -175,6 +175,8 @@ var tree = {
|
|||
if (!data.succ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
tree.fileTree.removeNode(wide.curNode);
|
||||
|
||||
if ("ico-ztree-dir " !== wide.curNode.iconSkin) {
|
||||
// 是文件的话,查看 editor 中是否被打开,如打开则移除
|
||||
|
@ -193,8 +195,6 @@ var tree = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
tree.fileTree.removeNode(wide.curNode);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue