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

убрал gUndoInsDelCellsFlag

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59291 954022d7-b5bf-4e40-9824-e11837661b57
parent 1be1b3b1
...@@ -291,8 +291,6 @@ CHistory.prototype.UndoRedoEnd = function (Point, oRedoObjectParam, bUndo) { ...@@ -291,8 +291,6 @@ CHistory.prototype.UndoRedoEnd = function (Point, oRedoObjectParam, bUndo) {
} }
} }
} }
gUndoInsDelCellsFlag = true;
} }
//синхронизация index и id worksheet //синхронизация index и id worksheet
if (oRedoObjectParam.bUpdateWorksheetByModel) if (oRedoObjectParam.bUpdateWorksheetByModel)
......
...@@ -3530,8 +3530,6 @@ UndoRedoAutoFilters.prototype = { ...@@ -3530,8 +3530,6 @@ UndoRedoAutoFilters.prototype = {
if (bUndo == true) if (bUndo == true)
{ {
autoFilters.Undo(Type, Data); autoFilters.Undo(Type, Data);
if(Data && Data.undo && !Data.undo.insCells && gUndoInsDelCellsFlag && typeof gUndoInsDelCellsFlag == "object" && gUndoInsDelCellsFlag.arg1 && gUndoInsDelCellsFlag.arg2 && gUndoInsDelCellsFlag.data)
autoFilters._setColorStyleTable(gUndoInsDelCellsFlag.arg1, gUndoInsDelCellsFlag.arg2, gUndoInsDelCellsFlag.data, null, true);
} }
else else
autoFilters.Redo(Type, Data); autoFilters.Redo(Type, Data);
......
"use strict"; "use strict";
var gUndoInsDelCellsFlag = true;
( /** ( /**
* @param {jQuery} $ * @param {jQuery} $
* @param {Window} window * @param {Window} window
...@@ -1838,7 +1837,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -1838,7 +1837,7 @@ var gUndoInsDelCellsFlag = true;
return; return;
if(cloneData.insCells) if(cloneData.insCells)
delete cloneData.insCells; delete cloneData.insCells;
gUndoInsDelCellsFlag = false;
if(cloneData.refTable) if(cloneData.refTable)
{ {
if(aWs.TableParts) if(aWs.TableParts)
......
...@@ -9546,11 +9546,7 @@ ...@@ -9546,11 +9546,7 @@
fullRecalc = true; fullRecalc = true;
if(isCheckChangeAutoFilter === true) if(isCheckChangeAutoFilter === true)
{ {
if(gUndoInsDelCellsFlag == true) t.autoFilters.insertColumn(prop, _updateRangeIns, arn);
t.autoFilters.insertColumn(prop, _updateRangeIns, arn);
else if(gUndoInsDelCellsFlag && typeof gUndoInsDelCellsFlag == "object" && gUndoInsDelCellsFlag.arg1 && gUndoInsDelCellsFlag.arg2 && gUndoInsDelCellsFlag.data)
t.autoFilters._setColorStyleTable(gUndoInsDelCellsFlag.arg1, gUndoInsDelCellsFlag.arg2, gUndoInsDelCellsFlag.data, null, true);
gUndoInsDelCellsFlag = true;
} }
t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns); t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns);
t.objectRender.updateDrawingObject(true, val, _updateRangeIns); t.objectRender.updateDrawingObject(true, val, _updateRangeIns);
...@@ -9575,11 +9571,7 @@ ...@@ -9575,11 +9571,7 @@
fullRecalc = true; fullRecalc = true;
if(isCheckChangeAutoFilter === true) if(isCheckChangeAutoFilter === true)
{ {
if(gUndoInsDelCellsFlag == true) t.autoFilters.insertRows(prop,_updateRangeIns, _updateRangeIns);
t.autoFilters.insertRows(prop,_updateRangeIns, _updateRangeIns);
else if(gUndoInsDelCellsFlag && typeof gUndoInsDelCellsFlag == "object" && gUndoInsDelCellsFlag.arg1 && gUndoInsDelCellsFlag.arg2 && gUndoInsDelCellsFlag.data)
t.autoFilters._setColorStyleTable(gUndoInsDelCellsFlag.arg1, gUndoInsDelCellsFlag.arg2, gUndoInsDelCellsFlag.data, null, true);
gUndoInsDelCellsFlag = true;
} }
t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns); t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns);
t.objectRender.updateDrawingObject(true, val, _updateRangeIns); t.objectRender.updateDrawingObject(true, val, _updateRangeIns);
...@@ -9598,11 +9590,11 @@ ...@@ -9598,11 +9590,11 @@
functionModelAction = function () { functionModelAction = function () {
fullRecalc = true; fullRecalc = true;
t.model.insertColsBefore(_updateRangeIns.c1, _updateRangeIns.c2 - _updateRangeIns.c1 + 1); t.model.insertColsBefore(_updateRangeIns.c1, _updateRangeIns.c2 - _updateRangeIns.c1 + 1);
if(gUndoInsDelCellsFlag == true)
t.autoFilters.insertColumn(prop, _updateRangeIns, arn, c_oAscInsertOptions.InsertColumns);
else if(gUndoInsDelCellsFlag && typeof gUndoInsDelCellsFlag == "object" && gUndoInsDelCellsFlag.arg1 && gUndoInsDelCellsFlag.arg2 && gUndoInsDelCellsFlag.data) t.autoFilters.insertColumn(prop, _updateRangeIns, arn, c_oAscInsertOptions.InsertColumns);
t.autoFilters._setColorStyleTable(gUndoInsDelCellsFlag.arg1, gUndoInsDelCellsFlag.arg2, gUndoInsDelCellsFlag.data, null, true);
gUndoInsDelCellsFlag = true;
t.objectRender.updateDrawingObject(true, val, _updateRangeIns); t.objectRender.updateDrawingObject(true, val, _updateRangeIns);
t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns); t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns);
}; };
...@@ -9619,11 +9611,9 @@ ...@@ -9619,11 +9611,9 @@
functionModelAction = function () { functionModelAction = function () {
fullRecalc = true; fullRecalc = true;
t.model.insertRowsBefore(_updateRangeIns.r1, _updateRangeIns.r2 - _updateRangeIns.r1 + 1); t.model.insertRowsBefore(_updateRangeIns.r1, _updateRangeIns.r2 - _updateRangeIns.r1 + 1);
if(gUndoInsDelCellsFlag == true)
t.autoFilters.insertRows(prop,_updateRangeIns, arn, c_oAscInsertOptions.InsertRows); t.autoFilters.insertRows(prop,_updateRangeIns, arn, c_oAscInsertOptions.InsertRows);
else if(gUndoInsDelCellsFlag && typeof gUndoInsDelCellsFlag == "object" && gUndoInsDelCellsFlag.arg1 && gUndoInsDelCellsFlag.arg2 && gUndoInsDelCellsFlag.data)
t.autoFilters._setColorStyleTable(gUndoInsDelCellsFlag.arg1, gUndoInsDelCellsFlag.arg2, gUndoInsDelCellsFlag.data, null, true);
gUndoInsDelCellsFlag = true;
t.objectRender.updateDrawingObject(true, val, _updateRangeIns); t.objectRender.updateDrawingObject(true, val, _updateRangeIns);
t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns); t.cellCommentator.updateCommentsDependencies(true, val, _updateRangeIns);
}; };
......
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