← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4792: Fixed "showed details" - Beneficiary identifier type

 

------------------------------------------------------------
revno: 4792
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-10-03 13:48:21 +0700
message:
  Fixed "showed details" - Beneficiary identifier type
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientIdentifierType.vm
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientIdentifierType.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-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientIdentifierType.vm'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientIdentifierType.vm	2011-09-28 07:11:18 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientIdentifierType.vm	2011-10-03 06:48:21 +0000
@@ -6,6 +6,6 @@
 	"mandatory": "$!{patientIdentifierType.mandatory}",
 	"related": "$!{patientIdentifierType.related}",
 	"noChars": "$!{patientIdentifierType.noChars}",
-	"type": $!{patientIdentifierType.type}"
+	"type": "$!{patientIdentifierType.type}"
   }
 }
\ No newline at end of file

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientIdentifierType.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientIdentifierType.js	2011-09-28 07:11:18 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patientIdentifierType.js	2011-10-03 06:48:21 +0000
@@ -6,20 +6,20 @@
 {
 	jQuery.post( 'getPatientIdentifierType.action', { id: patientIdentifierTypeId },
 		function ( json ) {
-			setInnerHTML( 'idField', json.patientAttributeType.id );
-			setInnerHTML( 'nameField', json.patientAttributeType.name );	
-			setInnerHTML( 'descriptionField', json.patientAttributeType.description );
+			setInnerHTML( 'idField', json.patientIdentifierType.id );
+			setInnerHTML( 'nameField', json.patientIdentifierType.name );	
+			setInnerHTML( 'descriptionField', json.patientIdentifierType.description );
 			
 			var boolValueMap = { 'true':i18n_yes, 'false':i18n_no };
-			var boolType = json.patientAttributeType.mandatory;
+			var boolType = json.patientIdentifierType.mandatory;
 			setInnerHTML( 'mandatoryField', boolValueMap[boolType] );
 			
-			boolType = json.patientAttributeType.related;
+			boolType = json.patientIdentifierType.related;
 			setInnerHTML( 'relatedField', boolValueMap[boolType] );
-			setInnerHTML( 'noCharsField', json.patientAttributeType.noChars );
+			setInnerHTML( 'noCharsField', json.patientIdentifierType.noChars );
 			
 			var valueTypeMap = { 'text':i18n_string, 'number':i18n_number, 'letter':i18n_alphabet };
-			var valueType = json.patientAttributeType.type;
+			var valueType = json.patientIdentifierType.type;
 			setInnerHTML( 'typeField', valueTypeMap[valueType] );
 			
 			showDetails();