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

убрал g_oUndoRedoAutoFiltersMoveData

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63016 954022d7-b5bf-4e40-9824-e11837661b57
parent 480033e7
......@@ -3361,17 +3361,10 @@ UndoRedoWoorksheet.prototype = {
{
worksheetView.autoFilters._cleanStyleTable(to);
}
if(g_oUndoRedoAutoFiltersMoveData)
{
worksheetView.autoFilters._moveAutoFilters(null, null, g_oUndoRedoAutoFiltersMoveData);
g_oUndoRedoAutoFiltersMoveData = null;
}
else
{
worksheetView.autoFilters.reDrawFilter(to);
worksheetView.autoFilters.reDrawFilter(from);
}
}
else if(historyitem_Worksheet_Merge == Type || historyitem_Worksheet_Unmerge == Type)
{
if(historyitem_Worksheet_Unmerge == Type)
......@@ -3712,7 +3705,6 @@ UndoRedoComment.prototype = {
};
var g_oUndoRedoAutoFilters = null;
var g_oUndoRedoAutoFiltersMoveData = null;
function UndoRedoAutoFilters(wb){
this.wb = wb;
this.nType = UndoRedoClassTypes.Add(function(){return g_oUndoRedoAutoFilters;});
......@@ -3731,11 +3723,7 @@ UndoRedoAutoFilters.prototype = {
var api = window["Asc"]["editor"];
if (!api.wb)
return;
if(bUndo && Type == 6)
{
g_oUndoRedoAutoFiltersMoveData = Data;
return;
}
var ws = api.wb.getWorksheetById(nSheetId);
Data.worksheet = ws;
var autoFilters = ws.autoFilters;
......
......@@ -950,12 +950,12 @@ var maxIndividualValues = 10000;
// Undo
Undo: function (type, data) {
var aWs = this._getCurrentWS();
data = data.undo;
var undoData = data.undo;
var cloneData;
if(data.clone)
cloneData = data.clone(null);
if(undoData.clone)
cloneData = undoData.clone(null);
else
cloneData = data;
cloneData = undoData;
if(!cloneData)
return;
......@@ -979,7 +979,12 @@ var maxIndividualValues = 10000;
}
}
if(cloneData.FilterColumns || cloneData.AutoFilter || cloneData.TableColumns || (cloneData.Ref && (cloneData instanceof AutoFilter || cloneData instanceof TablePart)))
//TODO переделать undo, по типам
if(type === historyitem_AutoFilter_Move)
{
this._moveAutoFilters(null, null, data);
}
else if(cloneData.FilterColumns || cloneData.AutoFilter || cloneData.TableColumns || (cloneData.Ref && (cloneData instanceof AutoFilter || cloneData instanceof TablePart)))
{
if(cloneData.Ref)
{
......
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