Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(tbls): correctly arrange child headings again
Browse files Browse the repository at this point in the history
  • Loading branch information
Christine Yu committed May 5, 2015
1 parent 27b849e commit 2ce5c4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/components/tables/templates/tableicious.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<th ng-if="!heading.hidden && getHeadingEnabled(heading, this)"
ng-class="::getHeadingClass(heading)"
data-translate
ng-repeat="heading in getAllHeadingsAtNestingLevel(0) | orderBy:getColumnIndex:heading track by $index"
ng-repeat="heading in getAllHeadingsAtNestingLevel(0) | orderBy:getColumnIndex:heading track by heading.id"
rowspan="{{::getHeadingRowSpan(heading)}}"
colspan="{{::getHeadingColSpan(heading)}}">
<div tableicious-header heading="heading" paging="paging" scope="col" data="data"ng-if='::heading.compileHead'></div>
<span ng-if="::!heading.noTitle">{{heading.displayName}}</span>
</th>
</tr>
<tr>
<th ng-repeat="childHeading in ::getAllHeadingsAtNestingLevel(1) track by $index" data-ng-if="!childHeading.hidden">
<th ng-repeat="childHeading in ::getAllHeadingsAtNestingLevel(1) track by childHeading.id" data-ng-if="!childHeading.hidden">
<span data-tooltip="{{ childHeading.toolTipText }}" data-tooltip-append-to-body="true" tooltip-placement="top">
{{ childHeading.displayName }}
</span>
Expand Down Expand Up @@ -44,4 +44,4 @@
</td>
</tr>
</tbody>
</table>
</table>

1 comment on commit 2ce5c4a

@cy
Copy link
Contributor

@cy cy commented on 2ce5c4a May 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

child headings weren't moving with the parent when the parent is re-arranged using the "Columns" dropdown. this is the fix.

Please sign in to comment.