autorefresh dir after compressing

This commit is contained in:
Van 2015-03-22 12:59:25 +08:00
parent 59e260ea6f
commit 0cd5a093d5
1 changed files with 7 additions and 6 deletions

View File

@ -186,8 +186,9 @@ var tree = {
return false; return false;
} }
isSucc = true; var dir = wide.curNode.getParentNode();
tree.fileTree.reAsyncChildNodes(dir, "refresh");
} }
}); });
}, },
@ -206,7 +207,7 @@ var tree = {
return false; return false;
} }
} }
$("#dialogGitClonePrompt").dialog('open'); $("#dialogGitClonePrompt").dialog('open');
}, },
import: function () { import: function () {
@ -275,7 +276,7 @@ var tree = {
} else { } else {
$fileRMenu.find(".remove").addClass("disabled"); $fileRMenu.find(".remove").addClass("disabled");
} }
if (wide.curNode.path.indexOf("zip", wide.curNode.path.length - "zip".length) === -1) { // !path.endsWith("zip") if (wide.curNode.path.indexOf("zip", wide.curNode.path.length - "zip".length) === -1) { // !path.endsWith("zip")
$fileRMenu.find(".decompress").hide(); $fileRMenu.find(".decompress").hide();
} else { } else {
@ -291,7 +292,7 @@ var tree = {
"left": event.clientX + "px", "left": event.clientX + "px",
"display": "block" "display": "block"
}).show(); }).show();
$dirRMenu.hide(); $dirRMenu.hide();
menu.disabled(['import', 'git-clone']); menu.disabled(['import', 'git-clone']);
@ -318,7 +319,7 @@ var tree = {
"left": event.clientX + "px", "left": event.clientX + "px",
"display": "block" "display": "block"
}).show(); }).show();
$fileRMenu.hide(); $fileRMenu.hide();
} }
$("#files").focus(); $("#files").focus();