add open file to file context menu 🍭
This commit is contained in:
parent
9c91c49f25
commit
a0b806acca
|
@ -158,5 +158,6 @@
|
|||
"find_in_files": "Find in Files",
|
||||
"email": "Email",
|
||||
"no_empty": "Can not Empty!",
|
||||
"change_avatar": "Avatar modify go"
|
||||
"change_avatar": "Avatar modify go",
|
||||
"open": "Open"
|
||||
}
|
|
@ -158,5 +158,6 @@
|
|||
"find_in_files": "ファイルから検索",
|
||||
"email": "Eメール",
|
||||
"no_empty": "空ではありません",
|
||||
"change_avatar": "アバターの変更は行く"
|
||||
"change_avatar": "アバターの変更は行く",
|
||||
"open": "オープン"
|
||||
}
|
||||
|
|
|
@ -158,5 +158,6 @@
|
|||
"find_in_files": "在文件中查找",
|
||||
"email": "电子邮件",
|
||||
"no_empty": "不能为空",
|
||||
"change_avatar": "头像修改请到"
|
||||
"change_avatar": "头像修改请到",
|
||||
"open": "打开"
|
||||
}
|
|
@ -158,5 +158,6 @@
|
|||
"find_in_files": "在文件中查找",
|
||||
"email": "電子郵件",
|
||||
"no_empty": "不能為空",
|
||||
"change_avatar": "頭像修改請到"
|
||||
"change_avatar": "頭像修改請到",
|
||||
"open": "打開"
|
||||
}
|
|
@ -105,6 +105,7 @@ var tree = {
|
|||
if (wide.curNode.iconSkin.indexOf("ico-ztree-dir") === 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
newFile: function (it) {
|
||||
|
@ -127,11 +128,11 @@ var tree = {
|
|||
return false;
|
||||
}
|
||||
} else {
|
||||
// 直接调用时,如果为 api 及其子目录或者 workspace 则不能进行删除
|
||||
if (!wide.curNode.removable) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$("#dialogRemoveConfirm").dialog("open");
|
||||
},
|
||||
rename: function (it) {
|
||||
|
@ -140,6 +141,7 @@ var tree = {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$("#dialogRenamePrompt").dialog("open");
|
||||
},
|
||||
export: function (it) {
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||
</head>
|
||||
<body>
|
||||
<!-- 主菜单 -->
|
||||
<!-- menu bar -->
|
||||
<div class="menu fn-clear">
|
||||
<ul class="fn-cleaer">
|
||||
<li>
|
||||
|
@ -376,7 +376,7 @@
|
|||
<div data-index="filreTree">
|
||||
<ul id="files" tabindex="-1" class="ztree"></ul>
|
||||
<input id="importFileupload" type="file" name="files[]" style="display: none;" onclick="tree.import();" multiple>
|
||||
<!-- 目录右键菜单 -->
|
||||
<!-- directory context menu -->
|
||||
<div id="dirRMenu" class="frame">
|
||||
<ul>
|
||||
<li class="create" onclick="tree.newFile(this);">
|
||||
|
@ -404,9 +404,12 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 文件右键菜单 -->
|
||||
<!-- file context menu -->
|
||||
<div id="fileRMenu" class="frame">
|
||||
<ul>
|
||||
<li class="open" onclick="tree.openFile(wide.curNode);">
|
||||
<span class="space"></span> {{.i18n.open}}
|
||||
</li>
|
||||
<li class="remove" onclick="tree.removeIt(this);">
|
||||
<span class="ico-remove font-ico"></span> {{.i18n.delete}}
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue