← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13191: minor fix for programStageCompleteness

 

------------------------------------------------------------
revno: 13191
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-12-10 13:17:17 +0100
message:
  minor fix for programStageCompleteness
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/programStageCompleteness.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/programStageCompleteness.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/programStageCompleteness.js	2013-07-23 05:44:52 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/programStageCompleteness.js	2013-12-10 12:17:17 +0000
@@ -1,16 +1,17 @@
 isAjax = true;
 
+$(function() {
+  selectionTreeSelection.setListenerFunction( orgunitSelected );
+});
+
 function orgunitSelected( orgUnits, orgUnitNames )
 {
 	showById('selectDiv');
 	hideById('showDataBtn');
 	hideById("listPatientDiv");
-	setFieldValue('orgunitName', orgUnitNames[0]);
 	setFieldValue('orgunitId', orgUnits[0]);
 }
 
-selection.setListenerFunction( orgunitSelected );
-
 function generateStageCompleteness()
 {
 	hideById('selectDiv');