Commit 846f0b1a authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Правка для SavedIndex

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56835 954022d7-b5bf-4e40-9824-e11837661b57
parent 356edee8
......@@ -246,7 +246,8 @@
}
// Отправляем на сервер изменения
this.handlers.trigger("sendChanges", History.SavedIndex, this.getRecalcIndexSave(this.m_oRecalcIndexColumns), this.getRecalcIndexSave(this.m_oRecalcIndexRows));
this.handlers.trigger("sendChanges", null !== History.SavedIndex ? Math.min(History.SavedIndex, History.Index) : null,
this.getRecalcIndexSave(this.m_oRecalcIndexColumns), this.getRecalcIndexSave(this.m_oRecalcIndexRows));
if (bIsCollaborative) {
// Пересчитываем lock-и от чужих пользователей
......
......@@ -714,6 +714,9 @@ CHistory.prototype =
Additional : {}
};
if ( this.SavedIndex >= this.Points.length - 2 && null !== this.SavedIndex )
this.SavedIndex = this.Points.length - 3;
this.Points.splice( this.Points.length - 2, 2, NewPoint );
if ( this.Index >= this.Points.length )
{
......
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