Commit 3a89302e authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Добавлены функции очистки таблицы Id.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62461 954022d7-b5bf-4e40-9824-e11837661b57
parent fdc2ddc7
......@@ -36,6 +36,14 @@ function CIdCounter()
{
this.m_bLoad = bValue;
};
this.Clear = function()
{
this.m_sUserId = null;
this.m_bLoad = true;
this.m_nIdCounterLoad = 0; // Счетчик Id для загрузки
this.m_nIdCounterEdit = 0; // Счетчик Id для работы
}
}
var g_oIdCounter = new CIdCounter();
......@@ -111,6 +119,13 @@ function CTableId()
{
return this.Id;
};
this.Clear = function()
{
this.m_aPairs = {};
this.m_bTurnOff = false;
this.Add(this, g_oIdCounter.Get_NewId());
};
//-----------------------------------------------------------------------------------
// Функции для работы с Undo/Redo
//-----------------------------------------------------------------------------------
......
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