add context menu on directory
This commit is contained in:
Van 2015-03-07 17:51:28 +08:00
parent d8f3cf7cad
commit fcb529cfe3
6 changed files with 22 additions and 4 deletions

View File

@ -171,5 +171,6 @@
"share": "Share",
"url": "URL",
"short_url": "Short URL",
"embeded": "Embeded"
"embeded": "Embeded",
"git_clone": "Git Clone"
}

View File

@ -171,5 +171,6 @@
"share": "シェア",
"url": "リンク",
"short_url": "ショートリンク",
"embeded": "埋め込む"
"embeded": "埋め込む",
"git_clone": "Git クローン"
}

View File

@ -171,5 +171,6 @@
"share": "分享",
"url": "链接",
"short_url": "短链接",
"embeded": "嵌入"
"embeded": "嵌入",
"git_clone": "Git 克隆"
}

View File

@ -171,5 +171,6 @@
"share": "分享",
"url": "鏈接",
"short_url": "短鏈接",
"embeded": "嵌入"
"embeded": "嵌入",
"git_clone": "Git 克隆"
}

View File

@ -179,6 +179,15 @@ var tree = {
tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh", true);
},
gitClone: function (it) {
if (it) {
if ($(it).hasClass("disabled")) {
return false;
}
}
alert("dev");
},
import: function () {
var request = newWideRequest();
request.path = wide.curNode.path;

View File

@ -421,6 +421,11 @@
<li onclick="tree.refresh(this);">
<span class="ico-refresh font-ico"></span> {{.i18n.refresh}}
</li>
<li class="hr"></li>
<li onclick="tree.gitClone(this);">
<span class="ico-git font-ico"></span> {{.i18n.git_clone}}
</li>
<li class="hr"></li>
<li onclick="$('#importFileupload').click();">
<span class="ico-import font-ico"></span> {{.i18n.import}}
</li>