← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18649: tracker-capture: a little performance improvment in TEI grid

 

------------------------------------------------------------
revno: 18649
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-03-20 14:08:47 +0100
message:
  tracker-capture: a little performance improvment in TEI grid
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/tei.html


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/tei.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/tei.html	2015-03-12 10:55:00 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/tei.html	2015-03-20 13:08:47 +0000
@@ -14,7 +14,7 @@
         <table class="table table-striped dhis2-table-hover table-bordered">               
             <thead>                        
                 <tr>
-                    <th ng-if="gridColumn.show" ng-repeat="gridColumn in gridColumns" class='mouse-pointer' ng-click="sortGrid(gridColumn)">                            
+                    <th ng-repeat="gridColumn in gridColumns | filter:{show: true}" class='mouse-pointer' ng-click="sortGrid(gridColumn)">                            
                         <!-- sort icon begins -->                                
                         <span ng-hide="gridColumn.showFilter" class="bold pointer" title="{{'sort'| translate}}">
                             <span ng-class="{true: 'red'} [sortColumn.id === gridColumn.id]"><i class="fa fa-sort"></i></span>
@@ -22,14 +22,13 @@
                         </span>
                         <!-- sort icon ends -->                            
                     </th>                                    
-                </tr>                        
+                </tr>
             </thead>
             <tbody id="list">
                 <tr ng-repeat="trackedEntity in trackedEntityList.rows| orderBy:d2Sort:reverse"   
                     ng-click="showDashboard(trackedEntity)"
                     title="{{'go_to_dashboard'| translate}}">
-                    <td ng-show="gridColumn.show"                                            
-                        ng-repeat="gridColumn in gridColumns">
+                    <td ng-repeat="gridColumn in gridColumns | filter:{show: true}">
                         <span ng-switch="gridColumn.valueType">
                             <span ng-switch-when="bool">
                                 <span ng-if="trackedEntity[gridColumn.id] === 'true'">{{'yes'| translate}}</span>