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

http://bugzserver/show_bug.cgi?id=30032 - Ошибка в консоли при применении...

http://bugzserver/show_bug.cgi?id=30032 - Ошибка в консоли при применении Custom Filter на новой странице

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64082 954022d7-b5bf-4e40-9824-e11837661b57
parent 74b73513
...@@ -499,6 +499,9 @@ var maxIndividualValues = 10000; ...@@ -499,6 +499,9 @@ var maxIndividualValues = 10000;
var filterObj = this._getPressedFilter(ar, autoFiltersObject.cellId); var filterObj = this._getPressedFilter(ar, autoFiltersObject.cellId);
var currentFilter = filterObj.filter; var currentFilter = filterObj.filter;
if(filterObj.filter === null)
return;
//for history //for history
var oldFilter = filterObj.filter.clone(null); var oldFilter = filterObj.filter.clone(null);
History.Create_NewPoint(); History.Create_NewPoint();
...@@ -1350,6 +1353,7 @@ var maxIndividualValues = 10000; ...@@ -1350,6 +1353,7 @@ var maxIndividualValues = 10000;
var newColId = autoFilter.FilterColumns[j].ColId + diffColId; var newColId = autoFilter.FilterColumns[j].ColId + diffColId;
if(newColId < 0 || (diff < 0 && col >= activeRange.c1 && col <= activeRange.c2)) if(newColId < 0 || (diff < 0 && col >= activeRange.c1 && col <= activeRange.c2))
{ {
autoFilter.FilterColumns[j].Filters.clean();
t._openHiddenRowsFilterColumn(autoFilter, autoFilter.FilterColumns[j].ColId); t._openHiddenRowsFilterColumn(autoFilter, autoFilter.FilterColumns[j].ColId);
autoFilter.FilterColumns.splice(j, 1); autoFilter.FilterColumns.splice(j, 1);
j--; j--;
...@@ -3611,7 +3615,11 @@ var maxIndividualValues = 10000; ...@@ -3611,7 +3615,11 @@ var maxIndividualValues = 10000;
//filter current button //filter current button
var checkValue = isDateTimeFormat ? val : text; var checkValue = isDateTimeFormat ? val : text;
if(!filterColumns[currentElemArray].Top10 && !isCustomFilters && !filterColumns[currentElemArray].isHideValue(checkValue, isDateTimeFormat)) if(!filterColumns[currentElemArray].Top10 && !isCustomFilters && !filterColumns[currentElemArray].isHideValue(checkValue, isDateTimeFormat))
{
if(isOpenHiddenRows)
aWs.setRowHidden(false, i, i);
tempResult.visible = true; tempResult.visible = true;
}
else else
{ {
if(isOpenHiddenRows) if(isOpenHiddenRows)
...@@ -3634,6 +3642,9 @@ var maxIndividualValues = 10000; ...@@ -3634,6 +3642,9 @@ var maxIndividualValues = 10000;
tempResult.text = text; tempResult.text = text;
tempResult.isDateFormat = cell.getNumFormat().isDateTimeFormat(); tempResult.isDateFormat = cell.getNumFormat().isDateTimeFormat();
if(isOpenHiddenRows)
aWs.setRowHidden(false, i, i);
addValueToMenuObj(tempResult, count); addValueToMenuObj(tempResult, count);
temp[text] = 1; temp[text] = 1;
count++; count++;
......
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