关闭编辑器后按照入栈顺序设置当前tab

This commit is contained in:
Van 2014-10-22 15:22:39 +08:00
parent 91ae76f0d0
commit 86e1d6ecc7
1 changed files with 12 additions and 8 deletions

View File

@ -116,10 +116,10 @@ var windows = {
if ($(".footer .ico-restore:eq(0)").css("display") === "inline") { if ($(".footer .ico-restore:eq(0)").css("display") === "inline") {
// 当文件树最小化时 // 当文件树最小化时
$it.css({ $it.css({
"width": "100%", "width": "100%",
"left": "0" "left": "0"
}); });
} }
}, },
restoreSide: function () { restoreSide: function () {
@ -163,7 +163,9 @@ var windows = {
windows.minBottom(); windows.minBottom();
windows.minSide(); windows.minSide();
wide.curEditor.focus(); if (wide.curEditor) {
wide.curEditor.focus();
}
windows.isMaxEditor = true; windows.isMaxEditor = true;
}, },
@ -176,7 +178,9 @@ var windows = {
windows.restoreBottom(); windows.restoreBottom();
windows.restoreSide(); windows.restoreSide();
wide.curEditor.focus(); if (wide.curEditor) {
wide.curEditor.focus();
}
windows.isMaxEditor = false; windows.isMaxEditor = false;
}, },