Commit db574d49 authored by Ilya.Kirillov's avatar Ilya.Kirillov

Добавлена обработка активности пользователя.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60722 954022d7-b5bf-4e40-9824-e11837661b57
parent c41fe81a
...@@ -79,6 +79,9 @@ CHistory.prototype = ...@@ -79,6 +79,9 @@ CHistory.prototype =
if ( true != this.Can_Undo() ) if ( true != this.Can_Undo() )
return null; return null;
if (editor)
editor.setUserAlive();
// Запоминаем самое последнее состояние документа для Redo // Запоминаем самое последнее состояние документа для Redo
if ( this.Index === this.Points.length - 1 ) if ( this.Index === this.Points.length - 1 )
this.LastState = this.Document.Get_SelectionState(); this.LastState = this.Document.Get_SelectionState();
...@@ -107,6 +110,9 @@ CHistory.prototype = ...@@ -107,6 +110,9 @@ CHistory.prototype =
// Проверяем можно ли сделать Redo // Проверяем можно ли сделать Redo
if ( true != this.Can_Redo() ) if ( true != this.Can_Redo() )
return null; return null;
if (editor)
editor.setUserAlive();
this.Document.Selection_Remove(); this.Document.Selection_Remove();
...@@ -186,6 +192,9 @@ CHistory.prototype = ...@@ -186,6 +192,9 @@ CHistory.prototype =
if ( this.Index < 0 ) if ( this.Index < 0 )
return; return;
if (editor)
editor.setUserAlive();
// Заглушка на случай, если у нас во время создания одной точки в истории, после нескольких изменений идет // Заглушка на случай, если у нас во время создания одной точки в истории, после нескольких изменений идет
// пересчет, потом снова добавляются изменения и снова запускается пересчет и т.д. // пересчет, потом снова добавляются изменения и снова запускается пересчет и т.д.
if ( this.RecIndex >= this.Index ) if ( this.RecIndex >= this.Index )
......
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