From 1a1c929bab9f71962381deefc52dee31b6ee1413 Mon Sep 17 00:00:00 2001 From: Van Date: Tue, 23 Dec 2014 10:03:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=A2=AB=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/session.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/session.js b/static/js/session.js index a819cf0..5939084 100644 --- a/static/js/session.js +++ b/static/js/session.js @@ -108,7 +108,14 @@ var session = { } } + // 设置当前编辑器 editors.tabs.setCurrent(id); + for (var c = 0, max = editors.data.length; c < max; c++) { + if (id === editors.data[c].id) { + wide.curEditor = editors.data[c].editor; + break; + } + } }, _initWS: function () { // 用于保持会话,如果该通道断开,则服务器端会销毁会话状态,回收相关资源.