dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11480
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3282: Fix bug: The inputted date into case-entry-form should be greater or equals to incident date.
------------------------------------------------------------
revno: 3282
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-04-05 11:29:09 +0700
message:
Fix bug: The inputted date into case-entry-form should be greater or equals to incident date.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataRecordingSelect.vm
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/dataEntry.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/dataRecordingSelect.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataRecordingSelect.vm 2011-03-24 17:27:39 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataRecordingSelect.vm 2011-04-05 04:29:09 +0000
@@ -63,9 +63,10 @@
<option value="$programStage.id" #if( $programStageId && $programStage.id == $programStageId ) selected="selected" #end>$encoder.htmlEncode( $programStage.name )</option>
#end
</select>
- </td>
+ </td>
#if( $programStageInstance )
- <td> </td>
+ <input type='hidden' id='incidentDate' name='incidentDate' value='$!format.formatDate($programStageInstance.programInstance.dateOfIncident)'/>
+ <td> </td>
<td><label for="dueDate">$i18n.getString( "due_date" ) </label></td>
<td>
<input type="text" id="dueDate" name="dueDate" value="$!format.formatDate( $programStageInstance.dueDate )" disabled="disabled"/>
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/dataEntry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/dataEntry.js 2011-01-21 03:41:23 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/dataEntry.js 2011-04-05 04:29:09 +0000
@@ -998,7 +998,7 @@
}
}
- var incidentDate = new Date( jQuery('#dueDate').val() );
+ var incidentDate = new Date( jQuery('#incidentDate').val() );
var inputtedDate = new Date(jQuery(this_).val());
if( inputtedDate < incidentDate )
{