=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2013-07-29 09:14:04 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2013-07-30 06:16:43 +0000 @@ -592,7 +592,14 @@ function registerIrregularEncounter( programInstanceId, programStageId, programStageName, dueDate ) { - jQuery.postJSON( "registerIrregularEncounter.action", + if(dueDate==''){ + showById("spanDueDateNewEncounter_" + programInstanceId); + } + else + { + hideById("spanDueDateNewEncounter_" + programInstanceId); + + jQuery.postJSON( "registerIrregularEncounter.action", { programInstanceId:programInstanceId, programStageId: programStageId, @@ -669,6 +676,7 @@ loadDataEntry( programStageInstanceId ); showSuccessMessage(i18n_create_event_success); }); + } } function disableCompletedButton( disabled ) === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstanceFlow.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstanceFlow.vm 2013-05-29 10:19:47 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstanceFlow.vm 2013-07-30 06:16:43 +0000 @@ -92,6 +92,10 @@ +