Refactorint
This commit is contained in:
parent
a51d386f16
commit
28b531f5e3
|
@ -2073,7 +2073,7 @@ define([
|
||||||
|
|
||||||
var filemenu = this.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file');
|
var filemenu = this.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file');
|
||||||
filemenu.loadDocument({doc:this.document});
|
filemenu.loadDocument({doc:this.document});
|
||||||
filemenu.panels['info'].updateInfo(this.document);
|
filemenu.panels && filemenu.panels['info'] && filemenu.panels['info'].updateInfo(this.document);
|
||||||
Common.Gateway.metaChange(meta);
|
Common.Gateway.metaChange(meta);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1765,7 +1765,7 @@ define([
|
||||||
|
|
||||||
var filemenu = this.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file');
|
var filemenu = this.getApplication().getController('LeftMenu').getView('LeftMenu').getMenu('file');
|
||||||
filemenu.loadDocument({doc:this.document});
|
filemenu.loadDocument({doc:this.document});
|
||||||
filemenu.panels['info'].updateInfo(this.document);
|
filemenu.panels && filemenu.panels['info'] && filemenu.panels['info'].updateInfo(this.document);
|
||||||
Common.Gateway.metaChange(meta);
|
Common.Gateway.metaChange(meta);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -2045,7 +2045,7 @@ define([
|
||||||
this.updateWindowTitle(this.api.asc_isDocumentModified(), true);
|
this.updateWindowTitle(this.api.asc_isDocumentModified(), true);
|
||||||
this.appOptions.spreadsheet.title = meta.title;
|
this.appOptions.spreadsheet.title = meta.title;
|
||||||
filemenu.loadDocument({doc:this.appOptions.spreadsheet});
|
filemenu.loadDocument({doc:this.appOptions.spreadsheet});
|
||||||
filemenu.panels['info'].updateInfo(this.appOptions.spreadsheet);
|
filemenu.panels && filemenu.panels['info'] && filemenu.panels['info'].updateInfo(this.appOptions.spreadsheet);
|
||||||
Common.Gateway.metaChange(meta);
|
Common.Gateway.metaChange(meta);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue