← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21291: tracker-capture: make sure tree is reloaded when going back-and-forth between pages

 

------------------------------------------------------------
revno: 21291
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-12-03 12:59:03 +0100
message:
  tracker-capture: make sure tree is reloaded when going back-and-forth between pages
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/leftbar-menu-controller.js
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/report-types-controller.js


--
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/scripts/leftbar-menu-controller.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/leftbar-menu-controller.js	2014-12-08 15:56:07 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/leftbar-menu-controller.js	2015-12-03 11:59:03 +0000
@@ -3,6 +3,7 @@
         function($scope,
                 $location) {
     $scope.showHome = function(){
+        selection.load();
         $location.path('/').search();
     }; 
     

=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/report-types-controller.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/report-types-controller.js	2014-12-08 15:56:07 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/report-types-controller.js	2015-12-03 11:59:03 +0000
@@ -2,19 +2,23 @@
 trackerCapture.controller('ReportTypesController',
         function($scope,
                 $location) {    
-    $scope.programSummary = function(){   
+    $scope.programSummary = function(){
+        selection.load();
         $location.path('/program-summary').search();
     };
     
     $scope.programStatistics = function(){   
+        selection.load();
         $location.path('/program-statistics').search();
     };
     
     $scope.overdueEvents = function(){   
+        selection.load();
         $location.path('/overdue-events').search();
     };   
     
     $scope.upcomingEvents = function(){
+        selection.load();
         $location.path('/upcoming-events').search();
     };
 });
\ No newline at end of file