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

bugzserver/show_bug.cgi?id=30191 - [Drag&Drop]Не отображается кнопка...

bugzserver/show_bug.cgi?id=30191 -  [Drag&Drop]Не отображается кнопка автофильтра после переноса диапазона со скрытым значением

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64419 954022d7-b5bf-4e40-9824-e11837661b57
parent 3b24b179
...@@ -4551,7 +4551,13 @@ AutoFilter.prototype.cleanFilters = function() { ...@@ -4551,7 +4551,13 @@ AutoFilter.prototype.cleanFilters = function() {
for(var i = 0; i < this.FilterColumns.length; i++) for(var i = 0; i < this.FilterColumns.length; i++)
{ {
this.FilterColumns[i].clean(); if(this.FilterColumns[i].ShowButton === false)
this.FilterColumns[i].clean();
else
{
this.FilterColumns.splice(i, 1);
i--;
}
} }
}; };
......
...@@ -562,7 +562,10 @@ var maxIndividualValues = 10000; ...@@ -562,7 +562,10 @@ var maxIndividualValues = 10000;
//скрываем строки //скрываем строки
if(hiddenObj.h === null) if(hiddenObj.h === null)
{
hiddenObj.h = isSetHidden; hiddenObj.h = isSetHidden;
hiddenObj.start = i;
}
else if(hiddenObj.h !== isSetHidden) else if(hiddenObj.h !== isSetHidden)
{ {
aWs.setRowHidden(hiddenObj.h, hiddenObj.start, i - 1); aWs.setRowHidden(hiddenObj.h, hiddenObj.start, i - 1);
...@@ -730,7 +733,7 @@ var maxIndividualValues = 10000; ...@@ -730,7 +733,7 @@ var maxIndividualValues = 10000;
{ {
if(filter.FilterColumns[i].isApplyAutoFilter()) if(filter.FilterColumns[i].isApplyAutoFilter())
isSetFilter = true; isSetFilter = true;
else else if(filter.FilterColumns[i].ShowButton === false)
isShowButton = false; isShowButton = false;
break; break;
...@@ -1739,6 +1742,19 @@ var maxIndividualValues = 10000; ...@@ -1739,6 +1742,19 @@ var maxIndividualValues = 10000;
return; return;
} }
var cloneFilterColumns = function(filterColumns)
{
var cloneFilterColumns = [];
if(filterColumns && filterColumns.length)
{
for(var i = 0; i < filterColumns.length; i++)
{
cloneFilterColumns[i] = filterColumns[i].clone();
}
}
return cloneFilterColumns;
};
var addRedo = false; var addRedo = false;
if(copyRange) if(copyRange)
...@@ -1779,9 +1795,9 @@ var maxIndividualValues = 10000; ...@@ -1779,9 +1795,9 @@ var maxIndividualValues = 10000;
else if(!data && findFilters[i] && findFilters[i].FilterColumns) else if(!data && findFilters[i] && findFilters[i].FilterColumns)
findFilters[i].cleanFilters(); findFilters[i].cleanFilters();
else if(data && data[i] && data[i].AutoFilter && data[i].AutoFilter.FilterColumns) else if(data && data[i] && data[i].AutoFilter && data[i].AutoFilter.FilterColumns)
findFilters[i].AutoFilter.FilterColumns = data[i].AutoFilter.FilterColumns; findFilters[i].AutoFilter.FilterColumns = cloneFilterColumns(data[i].AutoFilter.FilterColumns);
else if(data && data[i] && data[i].FilterColumns) else if(data && data[i] && data[i].FilterColumns)
findFilters[i].FilterColumns = data[i].FilterColumns; findFilters[i].FilterColumns = cloneFilterColumns(data[i].FilterColumns);
if(oCurFilter[i].TableStyleInfo && oCurFilter[i] && findFilters[i]) if(oCurFilter[i].TableStyleInfo && oCurFilter[i] && findFilters[i])
......
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