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

правка для бага №19346

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48110 954022d7-b5bf-4e40-9824-e11837661b57
parent 5141c7ef
...@@ -1267,7 +1267,7 @@ ...@@ -1267,7 +1267,7 @@
var sortState = undefined; var sortState = undefined;
if(curFilForSort.SortState) if(curFilForSort.SortState)
{ {
if(curFilForSort.SortState.SortConditions[0].Ref.split(':')[0] == buttons[i].id) if(curFilForSort.SortState.SortConditions && curFilForSort.SortState.SortConditions.length != 0 && curFilForSort.SortState.SortConditions[0].Ref.split(':')[0] == buttons[i].id)
{ {
if(curFilForSort.SortState.SortConditions[0].ConditionDescending) if(curFilForSort.SortState.SortConditions[0].ConditionDescending)
sortState = false; sortState = false;
...@@ -1376,6 +1376,9 @@ ...@@ -1376,6 +1376,9 @@
}; };
currentFilter.SortState.SortConditions[0] = {}; currentFilter.SortState.SortConditions[0] = {};
} }
if(!currentFilter.SortState.SortConditions[0])
currentFilter.SortState.SortConditions[0] = {};
currentFilter.SortState.SortConditions[0].Ref = cellId + ":" + newEndId; currentFilter.SortState.SortConditions[0].Ref = cellId + ":" + newEndId;
currentFilter.SortState.SortConditions[0].ConditionDescending = type; currentFilter.SortState.SortConditions[0].ConditionDescending = type;
//сама сортировка //сама сортировка
......
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