dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15613
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5700: (patient) Filled program automatically if the person is only enrolled to one program in case-entr...
------------------------------------------------------------
revno: 5700
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-01-11 15:15:28 +0700
message:
(patient) Filled program automatically if the person is only enrolled to one program in case-entry form.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataRecordingSelect.vm
--
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/dataRecordingSelect.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataRecordingSelect.vm 2012-01-11 05:31:53 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataRecordingSelect.vm 2012-01-11 08:15:28 +0000
@@ -1,3 +1,4 @@
+<form id='dataRecordingSelectForm' name='dataRecordingSelectForm'>
<table class="mainPageTable" id='patientInfoDiv'>
<tr>
@@ -95,3 +96,15 @@
</td>
</tr>
</table>
+</form>
+
+<script>
+ jQuery('#dataRecordingSelectForm').ready(function(){
+ var programs = byId('programId');
+ if( programs.options.length == 2 )
+ {
+ byId('programId').selectedIndex = 1;
+ loadProgramStages();
+ }
+ });
+</script>