← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4258: Fixed bug: Don't check duplicated identifier (Patient module).

 

------------------------------------------------------------
revno: 4258
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-08-05 14:47:00 +0700
message:
  Fixed bug: Don't check duplicated identifier (Patient module).
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	2011-08-03 04:48:50 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patient.js	2011-08-05 07:47:00 +0000
@@ -171,20 +171,12 @@
 
 function validateAddPatient()
 {	
-	$.post( 'validatePatient.action?' + getIdParams( ), 
-		{ 
-			checkedDuplicate: checkedDuplicate,
-			fullName: jQuery( '#addPatientForm [id=fullName]' ).val(),
-			gender: jQuery( '#addPatientForm [id=gender]' ).val(),
-			dobType: jQuery( '#addPatientForm [id=dobType]' ).val(),
-			birthDate: jQuery( '#addPatientForm [id=birthDate]' ).val(),
-			ageType: jQuery( '#addPatientForm [id=ageType]' ).val(),
-			age: jQuery( '#addPatientForm [id=age]' ).val(), 
-			gender: jQuery( '#addPatientForm [id=gender]' ).val(),
-			underAge: jQuery( '#addPatientForm [id=underAge]' ).is(":checked"),
-			representativeId: jQuery( '#addPatientForm [id=representativeId]' ).val(),
-			relationshipTypeId: jQuery( '#addPatientForm [id=relationshipTypeId]' ).val()
-		}, addValidationCompleted );
+	$.ajax({
+		type: "POST",
+		url: 'validatePatient.action',
+		data: getParamsForDiv('addPatientDiv'),
+		success:addValidationCompleted
+     });	
 }
 
 function addValidationCompleted( data )