=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js 2013-03-05 13:55:46 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js 2013-03-13 09:10:35 +0000 @@ -183,7 +183,8 @@ jQuery("#patientForm :input").each( function(){ if( $(this).attr('id') != "registrationDate" && $(this).attr('type') != 'button' - && $(this).attr('type') != 'submit' ) + && $(this).attr('type') != 'submit' + && $(this).attr('id') !='enrollmentDate' ) { $(this).val(""); } @@ -196,6 +197,18 @@ } }); } + else if(isContinue){ + jQuery("#patientForm :input").each( function(){ + if( $(this).attr('id') != "registrationDate" + && $(this).attr('type') != 'button' + && $(this).attr('type') != 'submit' ) + { + $(this).val(""); + } + }); + $("#patientForm :input").attr("disabled", false); + $("#patientForm").find("select").attr("disabled", false); + } else { $("#patientForm :input").attr("disabled", false);