From fcb529cfe3fbbd4409afd668afab8c8dad904b20 Mon Sep 17 00:00:00 2001 From: Van Date: Sat, 7 Mar 2015 17:51:28 +0800 Subject: [PATCH] #191 add context menu on directory --- i18n/en_US.json | 3 ++- i18n/ja_JP.json | 3 ++- i18n/zh_CN.json | 3 ++- i18n/zh_TW.json | 3 ++- static/js/tree.js | 9 +++++++++ views/index.html | 5 +++++ 6 files changed, 22 insertions(+), 4 deletions(-) diff --git a/i18n/en_US.json b/i18n/en_US.json index 79372a3..a5f6f62 100644 --- a/i18n/en_US.json +++ b/i18n/en_US.json @@ -171,5 +171,6 @@ "share": "Share", "url": "URL", "short_url": "Short URL", - "embeded": "Embeded" + "embeded": "Embeded", + "git_clone": "Git Clone" } \ No newline at end of file diff --git a/i18n/ja_JP.json b/i18n/ja_JP.json index b40daba..eb89945 100644 --- a/i18n/ja_JP.json +++ b/i18n/ja_JP.json @@ -171,5 +171,6 @@ "share": "シェア", "url": "リンク", "short_url": "ショートリンク", - "embeded": "埋め込む" + "embeded": "埋め込む", + "git_clone": "Git クローン" } diff --git a/i18n/zh_CN.json b/i18n/zh_CN.json index ba1fd4f..a829b51 100644 --- a/i18n/zh_CN.json +++ b/i18n/zh_CN.json @@ -171,5 +171,6 @@ "share": "分享", "url": "链接", "short_url": "短链接", - "embeded": "嵌入" + "embeded": "嵌入", + "git_clone": "Git 克隆" } \ No newline at end of file diff --git a/i18n/zh_TW.json b/i18n/zh_TW.json index 1fb402d..97748bd 100644 --- a/i18n/zh_TW.json +++ b/i18n/zh_TW.json @@ -171,5 +171,6 @@ "share": "分享", "url": "鏈接", "short_url": "短鏈接", - "embeded": "嵌入" + "embeded": "嵌入", + "git_clone": "Git 克隆" } \ No newline at end of file diff --git a/static/js/tree.js b/static/js/tree.js index 43298ae..e1d0dd5 100644 --- a/static/js/tree.js +++ b/static/js/tree.js @@ -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; diff --git a/views/index.html b/views/index.html index 468d2b2..bf86fc5 100644 --- a/views/index.html +++ b/views/index.html @@ -421,6 +421,11 @@
  • {{.i18n.refresh}}
  • +
  • +
  • + {{.i18n.git_clone}} +
  • +
  • {{.i18n.import}}