Fix undefined layout bug
This commit is contained in:
parent
3a3ffb1bc4
commit
952daeb76c
|
@ -19,13 +19,21 @@
|
||||||
*
|
*
|
||||||
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
|
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
|
||||||
* @author <a href="http://88250.b3log.org">Liang Ding</a>
|
* @author <a href="http://88250.b3log.org">Liang Ding</a>
|
||||||
* @version 1.1.1.2, Dec 15, 2015
|
* @version 1.1.2.2, Feb 16, 2016
|
||||||
*/
|
*/
|
||||||
var windows = {
|
var windows = {
|
||||||
isMaxEditor: false,
|
isMaxEditor: false,
|
||||||
outerLayout: {},
|
outerLayout: {},
|
||||||
innerLayout: {},
|
innerLayout: {},
|
||||||
init: function () {
|
init: function () {
|
||||||
|
if (!config.latestSessionContent) {
|
||||||
|
config.latestSessionContent = {
|
||||||
|
"fileTree": [],
|
||||||
|
"files": [],
|
||||||
|
"currentFile": "",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
if (!config.latestSessionContent.layout) {
|
if (!config.latestSessionContent.layout) {
|
||||||
config.latestSessionContent.layout = {
|
config.latestSessionContent.layout = {
|
||||||
"side": {
|
"side": {
|
||||||
|
|
Loading…
Reference in New Issue