← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8172: Remove the system-id of new patient in search criteria form after adding new person.

 

------------------------------------------------------------
revno: 8172
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-09-21 13:33:22 +0700
message:
  Remove the system-id of new patient in search criteria form after adding new person.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/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-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js	2012-09-21 04:26:48 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js	2012-09-21 06:33:22 +0000
@@ -283,12 +283,8 @@
       data: getParamsForDiv('patientForm'),
       success: function(json) {
 		var patientId = json.message.split('_')[0];
-		var systemIdentifierId = json.message.split('_')[1];
-		jQuery('#advSearchBox0 [id="searchText"]').val( systemIdentifierId );
-		statusSearching = 1;
-		
+		jQuery('#resultSearchDiv').dialog('close');
 		showPatientDashboardForm( patientId );
-		jQuery('#resultSearchDiv').dialog('close');
       }
      });
     return false;