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) {
|
||||
if (treeNode && !treeNode.isGOAPI) {
|
||||
menu.undisabled(['import', 'export']);
|
||||
menu.undisabled(['import', 'export', 'git-clone']);
|
||||
|
||||
wide.curNode = treeNode;
|
||||
tree.fileTree.selectNode(treeNode);
|
||||
|
@ -267,7 +267,7 @@ var tree = {
|
|||
|
||||
$dirRMenu.hide();
|
||||
|
||||
menu.disabled(['import']);
|
||||
menu.disabled(['import', 'git-clone']);
|
||||
} else { // 右击了目录
|
||||
if (wide.curNode.removable) {
|
||||
$dirRMenu.find(".remove").removeClass("disabled");
|
||||
|
@ -302,9 +302,9 @@ var tree = {
|
|||
wide.curNode = treeNode;
|
||||
tree.fileTree.selectNode(treeNode);
|
||||
|
||||
menu.undisabled(['import', 'export']);
|
||||
if (!tree.isDir()) { // 如果右击了文件
|
||||
menu.disabled(['import']);
|
||||
menu.undisabled(['import', 'export', 'git-clone']);
|
||||
if (!tree.isDir()) {
|
||||
menu.disabled(['import', 'git-clone']);
|
||||
}
|
||||
|
||||
$("#files").focus();
|
||||
|
|
|
@ -318,6 +318,11 @@
|
|||
<span class="ico-signup font-ico"></span>
|
||||
<span>{{.i18n.sign_up}}</span>
|
||||
</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>
|
||||
</div>
|
||||
</li>
|
||||
|
|
Loading…
Reference in New Issue