Commit 57cc7594 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправлена функция отсылки изменений с учетом новой схемы сохранения. Теперь...

Поправлена функция отсылки изменений с учетом новой схемы сохранения. Теперь вместе с изменениями посылается и точка последнего сохранения.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56539 954022d7-b5bf-4e40-9824-e11837661b57
parent 84e9187e
...@@ -324,9 +324,6 @@ CHistory.prototype = ...@@ -324,9 +324,6 @@ CHistory.prototype =
if ( this.Points.length < 2 ) if ( this.Points.length < 2 )
return; return;
if ( this.Index < this.SavedIndex )
this.SavedIndex = this.Index;
var Point1 = this.Points[this.Points.length - 2]; var Point1 = this.Points[this.Points.length - 2];
var Point2 = this.Points[this.Points.length - 1]; var Point2 = this.Points[this.Points.length - 1];
...@@ -366,6 +363,9 @@ CHistory.prototype = ...@@ -366,6 +363,9 @@ CHistory.prototype =
Additional : {} Additional : {}
}; };
if ( this.SavedIndex >= this.Points.length - 2 )
this.SavedIndex = this.Points.length - 3;
this.Points.splice( this.Points.length - 2, 2, NewPoint ); this.Points.splice( this.Points.length - 2, 2, NewPoint );
if ( this.Index >= this.Points.length ) if ( this.Index >= this.Points.length )
{ {
...@@ -373,7 +373,7 @@ CHistory.prototype = ...@@ -373,7 +373,7 @@ CHistory.prototype =
this.Index += DiffIndex; this.Index += DiffIndex;
this.RecIndex = Math.max( -1, this.RecIndex + DiffIndex); this.RecIndex = Math.max( -1, this.RecIndex + DiffIndex);
} }
}, },
TurnOff : function() TurnOff : function()
{ {
......
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