Commit bfd337b2 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

дополнение к Revision: 54715

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54721 954022d7-b5bf-4e40-9824-e11837661b57
parent ef1c4527
...@@ -7567,6 +7567,7 @@ function PromoteHelper(bVerical, bReverse, bbox){ ...@@ -7567,6 +7567,7 @@ function PromoteHelper(bVerical, bReverse, bbox){
this.bReverse = bReverse; this.bReverse = bReverse;
this.bbox = bbox; this.bbox = bbox;
this.oDataRow = {}; this.oDataRow = {};
this.nDataRowMaxIndex = -1;
//для get //для get
this.oCurRow = null; this.oCurRow = null;
this.nCurColIndex = null; this.nCurColIndex = null;
...@@ -7592,6 +7593,8 @@ PromoteHelper.prototype = { ...@@ -7592,6 +7593,8 @@ PromoteHelper.prototype = {
{ {
row = {}; row = {};
this.oDataRow[nRow] = row; this.oDataRow[nRow] = row;
if(this.nDataRowMaxIndex < nRow)
this.nDataRowMaxIndex = nRow;
} }
row[nCol] = {nCol: nCol, nVal: nVal, bDelimiter: bDelimiter, sPrefix: sPrefix, bDate: bDate, oAdditional: oAdditional, oSequence: null, nCurValue: null}; row[nCol] = {nCol: nCol, nVal: nVal, bDelimiter: bDelimiter, sPrefix: sPrefix, bDate: bDate, oAdditional: oAdditional, oSequence: null, nCurValue: null};
}, },
...@@ -7885,6 +7888,8 @@ PromoteHelper.prototype = { ...@@ -7885,6 +7888,8 @@ PromoteHelper.prototype = {
} }
}, },
setIndex: function(index){ setIndex: function(index){
if(-1 != this.nDataRowMaxIndex && this.nDataRowMaxIndex < index)
index = index % (this.nDataRowMaxIndex + 1);
this.oCurRow = this.oDataRow[index]; this.oCurRow = this.oDataRow[index];
this.nCurColIndex = 0; this.nCurColIndex = 0;
}, },
......
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