dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #13741
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4485: Set default dobtype as Verified in Add Patient form.
------------------------------------------------------------
revno: 4485
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2011-08-31 12:58:23 +0700
message:
Set default dobtype as Verified in Add Patient form.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patient.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientForm.vm
--
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-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patient.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patient.js 2011-08-26 05:59:37 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/patient.js 2011-08-31 05:58:23 +0000
@@ -823,7 +823,7 @@
checkDuplicate( divname );
});
- jQuery("#" + divname + " [id=dobType]").click(function() {
+ jQuery("#" + divname + " [id=dobType]").change(function() {
dobTypeOnChange( divname );
});
}
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientForm.vm 2011-08-01 02:39:52 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientForm.vm 2011-08-31 05:58:23 +0000
@@ -45,8 +45,7 @@
<td><label for="dobType">$i18n.getString( "dob_type" )<em title="$i18n.getString( 'required' )" class="required">*</em></label></td>
<td class="input-column">
<select id='dobType' name="dobType" style="width:28.3em" class="{validate:{required:true}}">
- <option value="" selected="selected">[$i18n.getString( "please_select" )]</option>
- <option value="V" >$i18n.getString( "verified" )</option>
+ <option value="V" selected="selected">$i18n.getString( "verified" )</option>
<option value="D" >$i18n.getString( "declared" )</option>
<option value="A" >$i18n.getString( "approximated" )</option>
</select>
@@ -54,9 +53,9 @@
<td></td>
</tr>
- <tr id='birthdaySpan' style="display:none" >
+ <tr id='birthdaySpan'>
<td><label for="birthDate">$i18n.getString( "date_of_birth" )<em title="$i18n.getString( 'required' )" class="required">*</em></label></td>
- <td>
+ <td class="input-column">
<input type="text" id="birthDate" name="birthDate" style="width:26.5em" />
</td>
<td></td>
@@ -193,4 +192,4 @@
</tr>
#end
#end
-</table>
+</table>
\ No newline at end of file