Browse Source

Fix to sort nested groups - Related to #2810 (#2817)

dependencies
Franki Sans 7 years ago
committed by yotamberk
parent
commit
76ed8ca42b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/timeline/component/ItemSet.js

+ 2
- 1
lib/timeline/component/ItemSet.js View File

@ -1157,7 +1157,8 @@ ItemSet.prototype._orderNestedGroups = function(groupIds) {
var nestedGroups = this.groupsData.get({ var nestedGroups = this.groupsData.get({
filter: function(nestedGroup) { filter: function(nestedGroup) {
return nestedGroup.nestedInGroup == groupId; return nestedGroup.nestedInGroup == groupId;
}
},
order: this.options.groupOrder
}); });
var nestedGroupIds = nestedGroups.map(function(nestedGroup) { return nestedGroup.id }) var nestedGroupIds = nestedGroups.map(function(nestedGroup) { return nestedGroup.id })
newGroupIdsOrder = newGroupIdsOrder.concat(nestedGroupIds); newGroupIdsOrder = newGroupIdsOrder.concat(nestedGroupIds);

Loading…
Cancel
Save