Commit e76d4e7a authored by GoshaZotov's avatar GoshaZotov Committed by Alexander.Trofimov

change function clearFilterColumn

parent 29f695b1
...@@ -2431,14 +2431,14 @@ ...@@ -2431,14 +2431,14 @@
{ {
var rangeCellId = this._idToRange(cellId); var rangeCellId = this._idToRange(cellId);
var colId = autoFilter.Ref.c2 - rangeCellId.c1; var colId = rangeCellId.c1 - autoFilter.Ref.c1;
res = this._getTrueColId(filter, colId); res = this._getTrueColId(filter, colId);
} }
return res; return res;
}, },
_getIndexByColId: function(autoFilter, cellId) _getIndexByColId: function(autoFilter, colId)
{ {
var res = null; var res = null;
...@@ -2446,7 +2446,7 @@ ...@@ -2446,7 +2446,7 @@
{ {
if(autoFilter.FilterColumns[i].ColId === colId) if(autoFilter.FilterColumns[i].ColId === colId)
{ {
index = i; res = i;
break; break;
} }
} }
...@@ -4339,10 +4339,12 @@ ...@@ -4339,10 +4339,12 @@
if(colId !== null) if(colId !== null)
{ {
var index = this._getIndexByColId(filter, colId); var index = this._getIndexByColId(autoFilter, colId);
this._openHiddenRowsAfterDeleteColumn(autoFilter, colId); this._openHiddenRowsAfterDeleteColumn(autoFilter, colId);
autoFilter.FilterColumns.splice(index, 1); autoFilter.FilterColumns.splice(index, 1);
this._resetTablePartStyle();
} }
return filter.Ref; return filter.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