dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #03418
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1149: fixed wrong utf8 char with vietnamese lang when create/update patient
------------------------------------------------------------
revno: 1149
committer: Tran Thanh Tri <Tran Thanh Tri@TranThanhTri-PC>
branch nick: trunk
timestamp: Wed 2009-12-02 10:58:21 +0700
message:
fixed wrong utf8 char with vietnamese lang when create/update patient
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patient.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-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patient.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patient.js 2009-12-01 09:17:05 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patient.js 2009-12-02 03:58:21 +0000
@@ -276,19 +276,19 @@
}
}
- var url = 'validatePatient.action?' +
- 'identifier=' + getFieldValue( 'identifier' ) +
- '&firstName=' + getFieldValue( 'firstName' ) +
- '&middleName=' + getFieldValue( 'middleName' ) +
- '&lastName=' + getFieldValue( 'lastName' ) +
- '&gender=' + getFieldValue( 'gender' ) +
- '&birthDate=' + getFieldValue( 'birthDate' ) +
- '&age=' + getFieldValue( 'age' ) ;
+ var params = 'identifier=' + getFieldValue( 'identifier' ) +
+ '&firstName=' + getFieldValue( 'firstName' ) +
+ '&middleName=' + getFieldValue( 'middleName' ) +
+ '&lastName=' + getFieldValue( 'lastName' ) +
+ '&gender=' + getFieldValue( 'gender' ) +
+ '&birthDate=' + getFieldValue( 'birthDate' ) +
+ '&age=' + getFieldValue( 'age' ) ;
var request = new Request();
request.setResponseTypeXML( 'message' );
- request.setCallbackSuccess( addValidationCompleted );
- request.send( url );
+ request.setCallbackSuccess( addValidationCompleted );
+ request.sendAsPost( params );
+ request.send( "validatePatient.action" );
return false;
}
@@ -319,20 +319,19 @@
function validateUpdatePatient()
{
- var url = 'validatePatient.action?' +
- 'id=' + getFieldValue( 'id' ) +
- '&identifier=' + getFieldValue( 'identifier' ) +
- '&firstName=' + getFieldValue( 'firstName' ) +
- '&middleName=' + getFieldValue( 'middleName' ) +
- '&lastName=' + getFieldValue( 'lastName' ) +
- '&gender=' + getFieldValue( 'gender' ) +
- '&birthDate=' + getFieldValue( 'birthDate' ) ;
+ var params = 'id=' + getFieldValue( 'id' ) +
+ '&identifier=' + getFieldValue( 'identifier' ) +
+ '&firstName=' + getFieldValue( 'firstName' ) +
+ '&middleName=' + getFieldValue( 'middleName' ) +
+ '&lastName=' + getFieldValue( 'lastName' ) +
+ '&gender=' + getFieldValue( 'gender' ) +
+ '&birthDate=' + getFieldValue( 'birthDate' ) ;
var request = new Request();
request.setResponseTypeXML( 'message' );
request.setCallbackSuccess( updateValidationCompleted );
-
- request.send( url );
+ request.sendAsPost( params );
+ request.send( "validatePatient.action" );
return false;
}