goto file can't focus

This commit is contained in:
Van 2014-12-16 16:34:00 +08:00
parent 2d3791bdb9
commit 782b937665
1 changed files with 4 additions and 1 deletions

View File

@ -204,10 +204,11 @@ var wide = {
tree.openFile(tree.fileTree.getNodeByTId(tId));
tree.fileTree.selectNode(wide.curNode);
$("#dialogGoFilePrompt").dialog("close");
wide.curEditor.focus();
});
$("#dialogGoFilePrompt").on("click", "li", function () {
var $list = $("#dialogGoFilePrompt > .list")
var $list = $("#dialogGoFilePrompt > .list");
$list.find("li").removeClass("selected");
$list.data("index", $(this).data("index"));
$(this).addClass("selected");
@ -218,6 +219,7 @@ var wide = {
tree.openFile(tree.fileTree.getNodeByTId(tId));
tree.fileTree.selectNode(wide.curNode);
$("#dialogGoFilePrompt").dialog("close");
wide.curEditor.focus();
});
$("#dialogGoFilePrompt > input").bind("input", function () {
@ -274,6 +276,7 @@ var wide = {
tree.openFile(tree.fileTree.getNodeByTId(tId));
tree.fileTree.selectNode(wide.curNode);
$("#dialogGoFilePrompt").dialog("close");
wide.curEditor.focus();
}
});