dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41733
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21284: tracker-capture: mvoed ou tree reloading from directive to controller. The reloading now happens ...
------------------------------------------------------------
revno: 21284
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-12-03 10:41:52 +0100
message:
tracker-capture: mvoed ou tree reloading from directive to controller. The reloading now happens only when back-button is clicked from dashboard
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dashboard/dashboard-controller.js
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/directives.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/components/dashboard/dashboard-controller.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dashboard/dashboard-controller.js 2015-11-11 15:46:28 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dashboard/dashboard-controller.js 2015-12-03 09:41:52 +0000
@@ -362,6 +362,8 @@
};
$scope.back = function(){
+ //reload OU tree
+ selection.load();
$location.path('/').search({program: $scope.selectedProgramId});
};
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/directives.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/directives.js 2015-10-23 15:42:36 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/directives.js 2015-12-03 09:41:52 +0000
@@ -10,8 +10,7 @@
return {
restrict: 'A',
link: function (scope, element, attrs) {
-
- selection.load();
+
$("#orgUnitTree").one("ouwtLoaded", function (event, ids, names) {
if (dhis2.tc && dhis2.tc.metaDataCached) {
$timeout(function () {