------------------------------------------------------------
revno: 18513
committer: Abyot Asalefew Gizaw <[email protected]>
branch nick: dhis2
timestamp: Fri 2015-03-06 17:14:10 +0100
message:
  tracker-capture: removed unused code
modified:
  
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.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/services.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js	2015-03-06 15:15:45 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/scripts/services.js	2015-03-06 16:14:10 +0000
@@ -612,34 +612,7 @@
                 }
             }       
             return def.promise;
-        },
-        reconstructForWebApi: function(attributes, attributesById, optionSets){            
-            var registrationAttributes = [];
-            var formEmpty = true;
-            angular.forEach(attributes, function(att){
-                var val = AttributesFactory.formatAttributeValue(att, attributesById, optionSets, 'API');
-                registrationAttributes.push({attribute: att.id, value: val});
-                if(val){
-                    formEmpty = false;
-                }                                     
-            });
-            return {attributes: registrationAttributes, formEmpty: formEmpty};
-        },
-        reconstructForUser: function(tei, attributes, attributesById, optionSets){
-            var registrationAttributes = [];
-            var formEmpty = true;
-            angular.forEach(attributes, function(att){
-                var _att = att;
-                _att.value = tei[att.id];
-                
-                var val = AttributesFactory.formatAttributeValue(_att, attributesById, optionSets, 'USER');
-                registrationAttributes.push({attribute: att.id, value: val});
-                if(val){
-                    formEmpty = false;
-                }                    
-            });
-            return {attributes: registrationAttributes, formEmpty: formEmpty};
-        }        
+        }
     };
 })
 

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to