=== 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-03-15 14:43:16 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2013-03-18 06:58:52 +0000 @@ -1793,6 +1793,10 @@ + "" + field.value + ""); field.value=""; field.style.backgroundColor = SUCCESS_COLOR; + + jQuery('#enrollmentDate').width('270'); + jQuery('#dateOfIncident').width('270'); + jQuery('#removeProgram').remove(); } else { showSuccessMessage( json.message ); @@ -1855,6 +1859,9 @@ else{ commentDivToggle(false); } + jQuery('#enrollmentDate').width('270'); + jQuery('#dateOfIncident').width('270'); + jQuery('#removeProgram').remove(); }); } === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/visitSchedule.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/visitSchedule.vm 2013-03-15 14:43:16 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/visitSchedule.vm 2013-03-18 06:58:52 +0000 @@ -17,11 +17,17 @@ #set($allowRemove = 'true') + + #foreach( $programStageInstance in $programStageInstances ) - #if( $programStageInstance.executionDate ) + #if( $!programStageInstance.executionDate + || $!programStageInstance.outboundSms.size() > 0 + || $!programStageInstance.patientComments.size() > 0 ) + #set($allowRemove = 'false') #end #end + #if($allowRemove == 'true')