';
- history += '';
- history += '' + i18n_program_stage + ' | ';
- history += '' + i18n_scheduled_for + ' | ';
- history += '
';
- for ( i in json.programStageInstances )
- {
- history += '';
- history += '';
- history += '' + json.programStageInstances[i].name + '';
- history += ' | ';
- history += '';
- history += json.programStageInstances[i].infor;
- history += ' | ';
- history += '
';
- }
- history += '
';
- setInnerHTML( 'currentSelection', history );
- showById('currentSelection');
-
var singleEvent = jQuery('#dataRecordingSelectDiv [name=programId] option:selected').attr('singleevent');
+
if(singleEvent=='true')
{
byId('programStageId').selectedIndex = 1;
@@ -66,9 +44,34 @@
}
else
{
+
+ // show history / plan
+ setInnerHTML( 'currentSelection', '' );
+ var history = '';
+ history += '';
+ history += '' + i18n_program_stage + ' | ';
+ history += '' + i18n_scheduled_for + ' | ';
+ history += '
';
+ for ( i in json.programStageInstances )
+ {
+ history += '';
+ history += '';
+ history += '' + json.programStageInstances[i].name + '';
+ history += ' | ';
+ history += '';
+ history += json.programStageInstances[i].infor;
+ history += ' | ';
+ history += '
';
+ }
+ history += '
';
+ setInnerHTML( 'currentSelection', history );
+ showById('currentSelection');
+
disable('completeBtn');
disable('validationBtn');
}
+
});
}
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm 2012-01-11 08:47:32 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentSelectForm.vm 2012-01-31 05:43:59 +0000
@@ -1,8 +1,6 @@