add git clone under team menu
This commit is contained in:
parent
02a660109a
commit
68f6c1d314
|
@ -243,7 +243,7 @@ var tree = {
|
||||||
},
|
},
|
||||||
onRightClick: function (event, treeId, treeNode) {
|
onRightClick: function (event, treeId, treeNode) {
|
||||||
if (treeNode && !treeNode.isGOAPI) {
|
if (treeNode && !treeNode.isGOAPI) {
|
||||||
menu.undisabled(['import', 'export']);
|
menu.undisabled(['import', 'export', 'git-clone']);
|
||||||
|
|
||||||
wide.curNode = treeNode;
|
wide.curNode = treeNode;
|
||||||
tree.fileTree.selectNode(treeNode);
|
tree.fileTree.selectNode(treeNode);
|
||||||
|
@ -267,7 +267,7 @@ var tree = {
|
||||||
|
|
||||||
$dirRMenu.hide();
|
$dirRMenu.hide();
|
||||||
|
|
||||||
menu.disabled(['import']);
|
menu.disabled(['import', 'git-clone']);
|
||||||
} else { // 右击了目录
|
} else { // 右击了目录
|
||||||
if (wide.curNode.removable) {
|
if (wide.curNode.removable) {
|
||||||
$dirRMenu.find(".remove").removeClass("disabled");
|
$dirRMenu.find(".remove").removeClass("disabled");
|
||||||
|
@ -302,9 +302,9 @@ var tree = {
|
||||||
wide.curNode = treeNode;
|
wide.curNode = treeNode;
|
||||||
tree.fileTree.selectNode(treeNode);
|
tree.fileTree.selectNode(treeNode);
|
||||||
|
|
||||||
menu.undisabled(['import', 'export']);
|
menu.undisabled(['import', 'export', 'git-clone']);
|
||||||
if (!tree.isDir()) { // 如果右击了文件
|
if (!tree.isDir()) {
|
||||||
menu.disabled(['import']);
|
menu.disabled(['import', 'git-clone']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#files").focus();
|
$("#files").focus();
|
||||||
|
|
|
@ -318,6 +318,11 @@
|
||||||
<span class="ico-signup font-ico"></span>
|
<span class="ico-signup font-ico"></span>
|
||||||
<span>{{.i18n.sign_up}}</span>
|
<span>{{.i18n.sign_up}}</span>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="hr"></li>
|
||||||
|
<li class="git-clone disabled" onclick="if (!$(this).hasClass('disabled')){tree.gitClone(this)}">
|
||||||
|
<span class="ico-git font-ico"></span>
|
||||||
|
<span>{{.i18n.git_clone}}</span>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue