dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36152
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18513: tracker-capture: removed unused code
------------------------------------------------------------
revno: 18513
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
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};
- }
+ }
};
})