dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #21470
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10168: Add && Register new button when adding a new person, does not work in Find/Add person.
------------------------------------------------------------
revno: 10168
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-03-13 16:10:35 +0700
message:
Add && Register new button when adding a new person, does not work in Find/Add person.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js
--
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/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);