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