From 53a2350dfdf6486ebb177e7bc88860a54c919faa Mon Sep 17 00:00:00 2001 From: Van Date: Thu, 18 Dec 2014 18:04:12 +0800 Subject: [PATCH] . --- static/js/tree.js | 19 +++++-------------- views/index.html | 7 ++++--- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/static/js/tree.js b/static/js/tree.js index 697cc62..c13c4de 100644 --- a/static/js/tree.js +++ b/static/js/tree.js @@ -144,13 +144,7 @@ var tree = { $("#dialogRenamePrompt").dialog("open"); }, - export: function (it) { - if (it) { - if ($(it).hasClass("disabled")) { - return false; - } - } - + export: function () { var request = newWideRequest(); request.path = wide.curNode.path; @@ -179,13 +173,7 @@ var tree = { tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh", true); }, - import: function (it) { - if (it) { - if ($(it).hasClass("disabled")) { - return false; - } - } - + import: function () { var request = newWideRequest(); request.path = wide.curNode.path; @@ -195,6 +183,9 @@ var tree = { formData: request, done: function (e, data) { tree.fileTree.reAsyncChildNodes(wide.curNode, "refresh"); + }, + fail: function () { + console.log(arguments); } }); }, diff --git a/views/index.html b/views/index.html index 28280e9..ef452b0 100644 --- a/views/index.html +++ b/views/index.html @@ -382,7 +382,8 @@
    - +
      @@ -405,7 +406,7 @@
    • {{.i18n.import}}
    • -
    • +
    • {{.i18n.export}}
    @@ -639,7 +640,7 @@ - +