Commit e033baf9 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

рефакторинг(delete History.TurnOn())

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60397 954022d7-b5bf-4e40-9824-e11837661b57
parent bfd79eb0
......@@ -1407,7 +1407,6 @@ var gUndoInsDelCellsFlag = true;
_addToHistoryFromTempObj: function()
{
History.TurnOn();
History.StartTransaction();
History.Create_NewPoint();
......
......@@ -1716,11 +1716,17 @@
if (tempWorkbook)
pasteData = tempWorkbook.aWorksheets[0];
if (pasteData) {
History.TurnOn();
if(pasteData.Drawings && pasteData.Drawings.length)
{
if(!(window["Asc"]["editor"] && window["Asc"]["editor"].isChartEditor))
{
var historyIsTurnOn = History.Is_On();
if(!historyIsTurnOn)
History.TurnOn();
t._insertImagesFromBinary(worksheet, pasteData, isIntoShape);
if(!historyIsTurnOn)
History.TurnOff();
}
}
else {
var newFonts = {};
......
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