Commit 3f5b8a26 authored by GoshaZotov's avatar GoshaZotov

change function code style(changeAutoFilter)

parent ec2c4849
......@@ -12018,7 +12018,7 @@
return;
}
if(true === window['AscCommonExcel'].specialFilteringMode){
if (true === window['AscCommonExcel'].specialFilteringMode) {
return;
}
......@@ -12032,8 +12032,7 @@
}
switch (optionType) {
case Asc.c_oAscChangeFilterOptions.filter:
{
case Asc.c_oAscChangeFilterOptions.filter: {
//DELETE
if (!val) {
var filterRange = null;
......@@ -12053,7 +12052,7 @@
t.af_drawButtons(filterRange);
t._onUpdateFormatTable(filterRange, false, true);
}
};
t._isLockedCells(filterRange, /*subType*/null, deleteFilterCallBack);
......@@ -12070,9 +12069,8 @@
};
var filterInfo = t.model.autoFilters._getFilterInfoByAddTableProps(ar);
var filterRange = filterInfo.filterRange
t._isLockedCells(filterRange, null, addFilterCallBack)
t._isLockedCells(filterInfo.filterRange, null, addFilterCallBack)
}
break;
......@@ -12105,12 +12103,9 @@
}
};
if(Asc.c_oAscChangeFilterOptions.style === optionType)
{
if (Asc.c_oAscChangeFilterOptions.style === optionType) {
onChangeAutoFilterCallback(true);
}
else
{
} else {
this._isLockedAll(onChangeAutoFilterCallback);
}
};
......
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