← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8017: Minor fix.

 

------------------------------------------------------------
revno: 8017
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-09-07 16:29:32 +0700
message:
  Minor fix.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.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/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2012-09-07 07:57:47 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2012-09-07 09:29:32 +0000
@@ -574,17 +574,16 @@
 						selectedProgram.remove();
 						hideById('programInstanceDiv');
 						hideById('entryFormContainer');
+						var completedRow = jQuery('#td_' + programInstanceId).html();
+						jQuery('#completedTB' ).prepend("<tr><td>" + completedRow + "</td></tr>");
+						hideById('tr1_' + programInstanceId );
+						hideById('tr2_' + programInstanceId );
 					}
 					
 					selection.enable();
 					hideLoader();
 					hideById('contentDiv');
 					
-					var completedRow = jQuery('#td_' + programInstanceId).html();
-					jQuery('#completedTB' ).prepend("<tr><td>" + completedRow + "</td></tr>");
-					hideById('tr1_' + programInstanceId );
-					hideById('tr2_' + programInstanceId );
-					jQuery('#img_' + programInstanceId).attr('src','');					
 					
 					if( isCreateEvent )
 					{