Commit 2cc771fc authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

перенёс проверку из Workbook.js в Serialize.js

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64154 954022d7-b5bf-4e40-9824-e11837661b57
parent fe11d52a
...@@ -6876,7 +6876,7 @@ ...@@ -6876,7 +6876,7 @@
res = (new Binary_WorkbookTableReader(this.stream, wb)).Read(); res = (new Binary_WorkbookTableReader(this.stream, wb)).Read();
} }
wb.init(); wb.init();
} else { } else if(window["Asc"] && window["Asc"]["editor"] !== undefined){
wb.init(true); wb.init(true);
} }
return res; return res;
......
...@@ -1899,14 +1899,11 @@ Workbook.prototype.init=function(bNoBuildDep){ ...@@ -1899,14 +1899,11 @@ Workbook.prototype.init=function(bNoBuildDep){
var self = this; var self = this;
if(window["Asc"] && window["Asc"]["editor"] !== undefined)//если мы в редакторе таблиц this.wsHandlers = new asc.asc_CHandlersList(/*handlers*/{
{ "changeRefTablePart" : function (displayName, ref) {
this.wsHandlers = new asc.asc_CHandlersList(/*handlers*/{ self.dependencyFormulas.changeTableName( displayName, null, ref );
"changeRefTablePart" : function (displayName, ref) { }
self.dependencyFormulas.changeTableName( displayName, null, ref ); });
}
});
}
//charts //charts
for(var i = 0, length = this.aWorksheets.length; i < length; ++i) for(var i = 0, length = this.aWorksheets.length; i < length; ++i)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment