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 @@