← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21740: Bigfix: Table add

 

------------------------------------------------------------
revno: 21740
committer: Markus Bekken <markus.bekken@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2016-01-14 20:36:41 +0100
message:
  Bigfix: Table add
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/new-event-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/new-event-controller.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/new-event-controller.js	2016-01-08 13:43:59 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/new-event-controller.js	2016-01-14 19:36:41 +0000
@@ -143,6 +143,11 @@
         if(angular.isObject($scope.model.selectedStage)){
             stage = $scope.model.selectedStage;
             prepareEvent();
+            
+            //If the caller wants to create right away, go ahead and save.
+            if (autoCreate) {
+                $scope.save();
+            };
         }
     });    
 
@@ -336,12 +341,6 @@
     }*/
     //end referral logic
     
-    
-    //If the caller wants to create right away, go ahead and save.
-    if (autoCreate) {
-        $scope.save();
-    };
-
     $scope.cancel = function () {
         $modalInstance.close();
     };