Browse Source

adding the table id

Aaron Baker 8 years ago
parent
commit
9a1e587427
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/angular/src/ux/table.directive.html

+ 1 - 1
src/main/angular/src/ux/table.directive.html

@@ -31,7 +31,7 @@
     </thead>
     </thead>
     <tbody>
     <tbody>
         <tr ng-repeat="item in table.getItems()" ng-click="table.clickItem(item, $event)"
         <tr ng-repeat="item in table.getItems()" ng-click="table.clickItem(item, $event)"
-            ng-attr-id="{{'index' + item.email }}">
+            ng-attr-id="{{'index' + $index }}">
             <td ng-repeat="column in table.getVisibleColumns()"
             <td ng-repeat="column in table.getVisibleColumns()"
                 ng-bind="table.getValue(item, column.valueExpression)"></td>
                 ng-bind="table.getValue(item, column.valueExpression)"></td>
             <td></td>
             <td></td>