Skip to content

Commit

Permalink
Merge pull request #1301 from babaevmm/patch-1
Browse files Browse the repository at this point in the history
Update widget-grouping.js
  • Loading branch information
Mottie authored Nov 4, 2016
2 parents d73e951 + 34c48c4 commit 974116f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/widgets/widget-grouping.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@
if ( $.isFunction( wo.group_formatter ) ) {
data.currentGroup = wo.group_formatter( ( data.group || '' ).toString(), data.column, c.table, c, wo, data ) || data.group;
}
data.$row.before( tsg.groupHeaderHTML( c, wo, data ) );
//add first() for groping with childRows
data.$row.first().before( tsg.groupHeaderHTML( c, wo, data ) );
if ( wo.group_saveGroups && !data.savedGroup && wo.group_collapsed && wo.group_collapsible ) {
// all groups start collapsed; data.groupIndex is 1 more than the expected index.
wo.group_collapsedGroups[ wo.group_collapsedGroup ].push( data.currentGroup + data.groupIndex );
Expand Down

0 comments on commit 974116f

Please sign in to comment.