← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21799: Scheduling new event after event complete

 

------------------------------------------------------------
revno: 21799
committer: Markus Bekken <markus.bekken@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2016-01-22 14:17:23 +0100
message:
  Scheduling new event after event complete
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry-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/components/dataentry/dataentry-controller.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry-controller.js	2016-01-20 13:50:57 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry-controller.js	2016-01-22 13:17:23 +0000
@@ -1499,7 +1499,7 @@
                     else {
                         if ($scope.currentStage.allowGenerateNextVisit) {
                             if($scope.currentStage.repeatable){
-                                $scope.showCreateEvent($scope.currentStage, $scope.eventCreationActions.add);
+                                $scope.showCreateEvent($scope.currentStage, $scope.eventCreationActions.schedule);
                             }
                             else{
                                 var index = -1, stage = null;
@@ -1511,7 +1511,7 @@
                                 }
                                 if(stage ){
                                     if(!$scope.eventsByStage[stage.id] || $scope.eventsByStage[stage.id] && $scope.eventsByStage[stage.id].length === 0){
-                                        $scope.showCreateEvent(stage, $scope.eventCreationActions.add);
+                                        $scope.showCreateEvent(stage, $scope.eventCreationActions.schedule);
                                     }
                                 }                                
                             }