Commit d37808a3 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Теперь asc_addWorksheet принимает имя листа

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56526 954022d7-b5bf-4e40-9824-e11837661b57
parent 0eff975d
...@@ -2195,8 +2195,8 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -2195,8 +2195,8 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
return true; return true;
}, },
asc_addWorksheet: function () { asc_addWorksheet: function (name) {
var active = this.wbModel.createWorksheet(); var active = this.wbModel.createWorksheet(null, name);
this.asc_showWorksheet (active); this.asc_showWorksheet (active);
// Посылаем callback об изменении списка листов // Посылаем callback об изменении списка листов
this.sheetsChanged(); this.sheetsChanged();
......
...@@ -1136,7 +1136,7 @@ Workbook.prototype.createWorksheet=function(indexBefore, sName, sId){ ...@@ -1136,7 +1136,7 @@ Workbook.prototype.createWorksheet=function(indexBefore, sName, sId){
} }
oNewWorksheet.init(); oNewWorksheet.init();
oNewWorksheet.initPostOpen(); oNewWorksheet.initPostOpen();
if(indexBefore >= 0 && indexBefore < this.aWorksheets.length) if(null != indexBefore && indexBefore >= 0 && indexBefore < this.aWorksheets.length)
this.aWorksheets.splice(indexBefore, 0, oNewWorksheet); this.aWorksheets.splice(indexBefore, 0, oNewWorksheet);
else else
{ {
......
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