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

изменил функцию isApplyAutoFilter

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64309 954022d7-b5bf-4e40-9824-e11837661b57
parent b6a5dc6a
......@@ -4517,7 +4517,16 @@ AutoFilter.prototype.isApplyAutoFilter = function() {
var res = false;
if(this.FilterColumns && this.FilterColumns.length)
{
for(var i = 0; i < this.FilterColumns.length; i++)
{
if(this.FilterColumns[i].isApplyAutoFilter())
{
res = true;
break;
}
}
}
return res;
};
......@@ -4531,7 +4540,7 @@ AutoFilter.prototype.isApplySortConditions = function() {
return res;
};
AutoFilter.prototype.getType = function(F)
AutoFilter.prototype.getType = function()
{
return g_nFiltersType.autoFilter;
};
......@@ -4696,6 +4705,15 @@ FilterColumn.prototype.createFilter = function(obj) {
return allFilterOpenElements;
};
FilterColumn.prototype.isApplyAutoFilter = function() {
var res = false;
if(this.Filters !== null || this.CustomFiltersObj !== null || this.DynamicFilter !== null || this.ColorFilter !== null || this.Top10 !== null)
res = true;
return res;
};
/** @constructor */
function Filters() {
this.Values = {};
......
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