Commit b7e52244 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

setName

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56775 954022d7-b5bf-4e40-9824-e11837661b57
parent 20bc6c1b
...@@ -2052,11 +2052,10 @@ Woorksheet.prototype.setName=function(name){ ...@@ -2052,11 +2052,10 @@ Woorksheet.prototype.setName=function(name){
var _lastName = !rx_test_ws_name.test(lastName) ? "'" + lastName + "'" : lastName; var _lastName = !rx_test_ws_name.test(lastName) ? "'" + lastName + "'" : lastName;
var _newName = !rx_test_ws_name.test(this.sName) ? "'" + this.sName + "'" : this.sName; var _newName = !rx_test_ws_name.test(this.sName) ? "'" + this.sName + "'" : this.sName;
var t = window["Asc"]["editor"]; for (var key in this.workbook.aWorksheets)
for (var key in t.wb.model.aWorksheets)
{ {
var wsModel = t.wb.model.aWorksheets[key]; var wsModel = this.workbook.aWorksheets[key];
var ws = t.wb.getWorksheet(wsModel.index); var ws = this.workbook.oApi.wb.getWorksheet(wsModel.index);
if ( ws ) if ( ws )
ws.objectRender.updateChartReferences(_lastName, _newName); ws.objectRender.updateChartReferences(_lastName, _newName);
} }
......
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