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

добавлены некоторые условия в а/ф

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63759 954022d7-b5bf-4e40-9824-e11837661b57
parent 3c6bf04b
......@@ -1649,7 +1649,7 @@ var maxIndividualValues = 10000;
return res;
},
iaChangeAutoFilterToTablePart: function(addFormatTableOptionsObj)
isChangeAutoFilterToTablePart: function(addFormatTableOptionsObj)
{
var res = false;
var aWs = this._getCurrentWS();
......
......@@ -6560,7 +6560,7 @@
cell_info.autoFilterInfo = new asc_CAutoFilterInfo();
cell_info.autoFilterInfo.tableStyleName = curTablePart ? curTablePart.TableStyleInfo.Name : null;
cell_info.autoFilterInfo.tableName = curTablePart ? curTablePart.Name : null;
cell_info.autoFilterInfo.tableName = curTablePart ? curTablePart.DisplayName : null;
if (-2 === tablePartsOptions) {
cell_info.autoFilterInfo.isAutoFilter = null;
cell_info.autoFilterInfo.isApplyAutoFilter = false;
......@@ -11002,7 +11002,7 @@
return;
}
if(t.autoFilters.iaChangeAutoFilterToTablePart(addFormatTableOptionsObj) === true)
if(addFormatTableOptionsObj && t.autoFilters.isChangeAutoFilterToTablePart(addFormatTableOptionsObj) === true)
t.autoFilters.changeAutoFilterToTablePart(styleName, ar, addFormatTableOptionsObj);
else
t.autoFilters.addAutoFilter(styleName, ar, addFormatTableOptionsObj);
......@@ -11030,7 +11030,11 @@
switch (optionType) {
case c_oAscChangeFilterOptions.filter:
{
t.autoFilters.deleteAutoFilter(ar, tableName);
if(!val)
t.autoFilters.deleteAutoFilter(ar, tableName);
else
t.autoFilters.addAutoFilter(null, ar);
break;
}
case c_oAscChangeFilterOptions.style:
......
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