← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8819: Display management div in single event without registration when to select an other orgunit.

 

------------------------------------------------------------
revno: 8819
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-11-01 16:28:31 +0700
message:
  Display management div in single event without registration when to select an other orgunit.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.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/anonymousRegistration.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js	2012-10-18 04:24:34 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js	2012-11-01 09:28:31 +0000
@@ -4,7 +4,6 @@
 	hideById('dataEntryInfor');
 	hideById('listDiv');
 	showById('mainLinkLbl');
-	
 	jQuery.getJSON( "anonymousPrograms.action",{}, 
 		function( json )
 		{   
@@ -16,8 +15,8 @@
 			for ( i in json.programs ) {
 				jQuery( '#programId').append( '<option value="' + json.programs[i].id +'" psid="' + json.programs[i].programStageId + '" reportDateDes="' + json.programs[i].reportDateDescription + '">' + json.programs[i].name + '</option>' );
 			}
-			
 			disableCriteriaDiv();
+			showById('selectDiv');
 		});
 		
 	setFieldValue( 'orgunitId', orgUnits[0] );