One year ago...
This commit is contained in:
Liang Ding 2015-11-24 14:55:09 +08:00
parent 8d2400c9c4
commit 0482e148e3
1 changed files with 7 additions and 1 deletions

View File

@ -161,8 +161,14 @@ var wide = {
$(".bottom-window-group .notification").focus(); $(".bottom-window-group .notification").focus();
return false; return false;
} }
$("#dialogNewFilePrompt").dialog("close"); $("#dialogNewFilePrompt").dialog("close");
setTimeout(function () { // Delay, waiting the file change notified and then open it
var tId = tree.getTIdByPath(request.path);
tree.openFile(tree.fileTree.getNodeByTId(tId));
tree.fileTree.selectNode(wide.curNode);
}, 100);
} }
}); });
} }